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

Brian Pitts brian at polibyte.com
Mon Sep 21 00:28:00 EDT 2009


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.

-- 
All the best,
Brian Pitts


More information about the Ale mailing list