Evan Martin (evan) wrote in evan_tech,
Evan Martin

ssh multiplexing revisited

A year and a half ago I asked about ssh's multiplexing-related features. Today I thought to look for more information about this again. It still seems underdocumented.

But what I've figured out is that OpenSSH 4.2 now allows "opportunistic multiplexing". If you have ControlMaster auto and a ControlPath ... set up in you ~/.ssh/config, the first time you connect to a host it creates and leaves open a (UNIX domain) socket that subsequent ssh's to the same host will use. This makes these connections come up much more quickly. (Here's more info.)

However, what I think I really want is something that actually leaves the master connection open for a few seconds after I log out. Then, stuff that does a series of sftp's or commands executed via ssh will be able to effectively pass the open connection along in between them, instead of opening up and tearing it down repeatedly like they currently do. (In particular, I'm thinking of arch/darcs over ssh.) I suppose that's what fsh is for, though...

  • blog moved

    As described elsewhere, I've quit LiveJournal. If you're interested in my continuing posts, you should look at one of these (each contains feed…

  • dremel

    They published a paper on Dremel, my favorite previously-unpublished tool from the Google toolchest. Greg Linden discusses it: "[...] it is capable…

  • treemaps

    I finally wrote up my recent adventures in treemapping, complete with nifty clickable visualizations.

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.