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

Richard Bronosky Richard at Bronosky.com
Sun Sep 20 23:37:48 EDT 2009


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.

http://www.google.com/search?q=ssh+controlmaster

The only problem I found was with using subversion with svn+ssh://
urls. That required me to export this evn var:
SVN_SSH='ssh -o ControlMaster=no'

.!# RichardBronosky #!.



On Sun, Sep 20, 2009 at 11:03 PM, Brian Pitts <brian at polibyte.com> wrote:
> On 09/18/2009 04:47 PM, brian at polibyte.com wrote:
>>
>> I was curious if I could do the same things with an ssh tunnel. I set
>> one up with
>>
>> ssh -fNA -o ProxyCommand='ssh host_2 nc %h %p' -L 2222:host_4:22 host_3
>>
>> I know the tunnel works, because I can do
>>
>> ssh -vp 2222 localhost
>>
>> and I'll be logged in to host_4. The end of the ssh debug messages say
>>
>> debug1: Next authentication method: publickey
>> debug1: Offering public key:
>> debug1: Server accepts key: *snip*
>> debug1: Authentication succeeded (publickey).
>>
>> However, when I try to use rsync over the tunnel
>>
>> rsync -e "ssh -vp 2222" localhost:/remote/files/ /local/files
>>
>
> So it turned out my problem was that, in the non-sanitized example, I
> had forgotten to specify a username where I needed to. Once I did that,
> it worked just like it should.
>
> --
> All the best,
> Brian Pitts
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>


More information about the Ale mailing list