[ale] SSH Tunnel and Agent Question

Brian Pitts brian at polibyte.com
Sun Sep 20 23:03:45 EDT 2009


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


More information about the Ale mailing list