[X-Unix] SSH trouble

Dmytro Koval'ov dmytro.kovalov at gmail.com
Thu Mar 17 19:31:22 PST 2005


On Thu, 17 Mar 2005 10:40:55 +0000, Simon Forster <simon-lists at ldml.com> wrote:
> offending line from ~/.ssh/known_hosts (on your iBook). Next time you
> log in, you'll be warned that you're connecting to an unknown host and
> that it'll be added to known_hosts. This is fine - but you'll then have
> to remove the new line from known_hosts next time you try to link up
> from your internal network. i.e. Each time you connect to the PowerMac
> on a different IP address to last time, you'll need to delete the
> appropriate line from known_hosts in your iBook.
> 

What you can do (warning: this wiil disable host sanity checking, so
do this only if you know for sure, that yuo are connecting to right
host).

1) add line
StrictHostKeyChecking no to ~/.ssh/ssh_config
2) 
  $ rm ~/.ssh/known_hosts
  $ ln -s /dev/null ~/.ssh/known_hosts

This way your local host ignores the fact that there's is no line in
known_hosts corresponding to remote machine, gives you a warning about
adding new line and adds new line to /dev/null.

Tested. Proved to work.

--Dmytro


More information about the X-Unix mailing list