[ale] You should be using SSH ControlMaster. Was: SSH Tunnel and Agent Question

Michael B. Trausch mbt at zest.trausch.us
Mon Sep 21 00:33:22 EDT 2009


On Mon, 2009-09-21 at 00:28 -0400, Brian Pitts wrote:
> On 09/21/2009 12:00 AM, Michael B. Trausch wrote:
> > On Sun, 2009-09-20 at 23:37 -0400, Richard Bronosky wrote:
> >> I learned about this is one year ago at Atlanta Linux Fest 2008.
> >> Because I LIVE in ssh, it has saved me several hours of
> productivity. 
> > 
> > That is nifty.  I am totally using that from now on.
> 
> ControlMaster is nifty, and I set it to auto for hosts that I'm making
> a
> lot of connections to or through. However, I occasionally run into
> quirks. E.G even if X forwarding is configured for a host in your ssh
> config, sshfs doesn't enable it. If you have ControlMaster enabled and
> connect to a host using sshfs first, when you later connect to it
> through ssh X forwarding won't work. Another quirk I've seen with
> ControlMaster is when you have a host_b that you connect to via a
> ProxyCommand involving host_a. If you open a terminal, ssh into
> host_a,
> open another terminal, ssh into host_b, then switch back to the
> original
> terminal and try to disconnect from host_a it will hang until you also
> disconnect from host_b.
> 
> So use it, but don't forgot that you set it up or else you'll
> occasionally be puzzled. 

Yeah, I'm used to the apparent hangs when I have an X application that I
run remotely, and exit the shell and find that I forgot to also close
the X application.  I don't ever assume it's actually hung anymore, I
assume I did something stupid that caused the underlying connection to
remain open.  :)

	--- Mike

-- 
Blog:  http://mike.trausch.us/blog/
Misc. Software:  http://mike.trausch.us/software/

“The greater danger for most of us lies not in setting our aim too
high and falling short; but in setting our aim too low, and achieving
our mark.” —Michelangelo



More information about the Ale mailing list