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 [EMAIL PROTECTED]
> > 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 via email to