Richard Bronosky
2009-09-21 03:37:48 UTC
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 #!.
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
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 #!.
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: 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, Ione 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: 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
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