You can reuse the same connection with the ssh binary using this in your .ssh/config:
ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r The second time you connect to the same host it will re-use the open connection. Including if you do scp/rsync -e ssh. (I know that doesn't quite answer your question, but it's a useful tidbit a lot of people don't know) On Thu, Nov 15, 2012 at 12:24 PM, Tim Caswell <[email protected]> wrote: > Great work! I've been wanting something like this for a long time. One > quick question though. Is it possible to both spawn a child process and > use it's stdio as raw binary data (no tty metadata) *and* spawn a tty > powered child (like bash -l) in the same connection? I never could find a > way to do this with shelling out to ssh, but maybe by implementing the > protocol you have more flexibility is what can be done. > > > On Thu, Nov 15, 2012 at 8:25 AM, mscdex <[email protected]> wrote: > >> v0.0.2 is now out on npm and supports more functionality, including: >> >> * port/connection forwarding in both directions >> >> * sending local terminal window resize notifications to the server >> >> * sending POSIX signals to the server >> >> * encrypted private keys >> >> * stream cipher support >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> 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 post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > 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 post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
