rsync through multiple ssh hops with password authentication prompt

Manuel López-Ibáñez manuellopezibanez at yahoo.es
Thu Oct 27 18:35:47 GMT 2005


Could this also be added to the FAQ ? Please!

Thanks,

Manuel.


Carson Gaspar wrote:
> --On Thursday, October 20, 2005 12:53 PM -0700 Wayne Davison 
> <wayned at samba.org> wrote:
> 
>> On Wed, Oct 19, 2005 at 10:29:21PM -0400, Matt McCutchen wrote:
>>
>>> $ ssh -L 2222:target:22 -N -f middleuser at middle
>>> Password: middlepass
>>
>>
>> Port-forwarding 22 is a great idea as long as ssh is configured not to
>> complain about the host conflict -- nicely done.  I've added this to the
>> FAQ in the "rsync through a firewall" section.
> 
> 
> Host keys aren't a problem if you use HostKeyAlias - see ssh_config(4). 
> e.g.:
> 
> ssh -L 2022:remote-host.example.com:22 -N -d middle-host.example.com
> 
> Host remote-tunnel.example.com
>        User remuser
>        HostName 127.0.0.1
>        Port 2022
>        HostKeyAlias remote-host.example.com
> 
> rsync -aH /foo/ remote-tunnel.example.com:/bar/
> 


		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es


More information about the rsync mailing list