Hoping someone may have an example using ssh2 where they are receiving cli
output from a remote server that requires interaction - for example the
output in a paged format by default.
Typical space to move forward a page as shown below:
--More-- (q) quit (u) pageup (/) search (n) repeat
I attempted to set the server to not page but I am finding the ssh2 client
is choking on the output when there is more than 500 lines being returned
so I am reconsidering going interactive and trying to page through the data
as required.
I am using the conn.shell(function(err, stream) to setup an interactive
session but I am not clear on how to *expect* the paging prompt and then
stream.write(' ') to continue the paging through the output data.
On Tuesday, April 30, 2013 11:49:51 AM UTC-7, mscdex wrote:
>
> On Apr 30, 2:47 pm, mscdex <[email protected]> wrote:
> > On Apr 30, 2:27 pm, Jochen Delabie <[email protected]> wrote:
> >
> > > Would be nice if there was a nodejs ssh server, so we can use it to
> run
> > > tests against.
> >
> > FWIW here is one that is seeing some active development:
> https://github.com/danopia/sshd.js
>
> Also: https://github.com/newmsz/node-ssh-protocol
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/10225f9a-b426-4a14-b3fb-3c68e11ceb95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.