Building true ssh opportunistic connection sharingOpenSSH has decent basic support for opportunistic connection sharing, but most of this is that There's two problems with ssh's current support for this, one big and
one small. First, being the master connection can keep your (You can sort of fake your way around both of these, but in either case there are drawbacks and limitations.) The second problem is at least theoretically easy to solve; add a ssh
setting to delay closing the master connection down for some number of
seconds after the last session closes. (Hopefully this is allowed by
the protocol. If not, The first problem doesn't have a clear, obvious solution, but I see two approaches. The brute force solution is to add an option where ssh runs a command if there is no master connection, and then tries again. The elegant solution is to have a switch that makes ssh fork and detach a child process to handle the master connection once it's set up. (Much like the Sidebar: my theory on how to fake your way around theseThere's no good way to fake a connection close delay; the only thing
you can really do is decide that you're willing to have the master
connections sit around forever (or until you kill them by hand), at
which point you just have them run The best way to deal with the second problem is always try to start
connection masters, but run them with ' (One comment.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |