Re: rsync through multiple ssh hops with password

This is a discussion on Re: rsync through multiple ssh hops with password within the Rsync forums, part of the Networking and Network Related category; On Thu, Oct 20, 2005 at 12:53:08PM -0700, Wayne Davison wrote: > On Wed, Oct 19, 2005 at ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-21-2005
Jay Fenlason
 
Posts: n/a
Default Re: rsync through multiple ssh hops with password

On Thu, Oct 20, 2005 at 12:53:08PM -0700, Wayne Davison wrote:
> On Wed, Oct 19, 2005 at 10:29:21PM -0400, Matt McCutchen wrote:
> > $ ssh -L 2222:target:22 -N -f middleuser@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.


If you have the keys for both hosts in your ~/.ssh/known_hosts file,
ssh doesn't complain at all, even with host checking enabled.

The fun part is getting both entries into the file in the first place.
I've been known to use methods like "mv ~/.ssh/known_hosts
~/.ssh/known_hosts.tmp ; ssh new-forwarded.host ; cat
~/.ssh/known_hosts.tmp >> ~/.ssh/known_hosts ; rm
~/.ssh/known_hosts.tmp" and simply cutting-n-pasting with a text
editor.

-- JF
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0