How I use ssh's connection sharing featureFollowing on the basic overview, here's how I use OpenSSH's connection sharing feature. First, since I hate programs that don't exit when I want them to, I
don't let When I want to create a master
You might wonder about the ' One of the peculiarities of how I use connection sharing is that so far
I always do it to hosts that I also have persistent sessions to. These
persistent sessions pin the master (Ideally there would be a In actual practice I don't create master ssh-master host1 sleep 1 # give it time to come up ssh host1 x-app-1 & ssh host1 x-app-2 & .... (And then anything else that I want to do on host1 later will also get the benefits of using the existing connection.) Among other things, this approach has the benefit that it's easy to add. I didn't need to change anything that my X startup script was already doing; I just inserted an additional command early on. (And then took it out again the first time I tried it, when it turned out to cause various problems.) |
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 |