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...

  • no go

    Two friends of mine were pretty enthusiastic about the Go language, so I tried writing a program in it yesterday. It is frustrating because despite…

  • playing with vala

    I actually was toying with making something like Vala back in college. It's pretty cute. Much like using the sane subset of C++, as you write code…

  • chromium.el

    This weekend I wrote some Emacs Lisp to write some utility functions I find useful for hacking on Chromium. It's fun to have a reason to use Lisp!…

  • 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.