[wellylug] Disabling SSH remote host identification temporarily
David Antliff
dave.antliff at paradise.net.nz
Thu Oct 27 09:19:18 NZDT 2005
Good morning everyone,
I have a host (A) that dual boots two environments (Gentoo/Win+Cygwin) and
I am setting up SSH for both environments. From another host (B, on the
same LAN) I am able to SSH to A (when running Linux) with public-key
authentication.
I would like to be able to SSH into host A when it is booted into
Windows/Cygwin however I get the expected error message:
...
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
...
Add correct host key in /home/david/.ssh/known_hosts to get rid of this
message.
...
etc
Normally I simply delete the host A key from B's known_hosts file, but
with Openssh v4 the hosts are now hashed so I have no (obvious) way of
knowing which entry corresponds to host A.
So I looked at some of the options you can pass to ssh, either by command
line or by .ssh/config
I'm not sure which ones are actually relevant but these two looked
promising:
RSAAuthentication no
StrictHostKeyChecking no
$ ssh A -o "RSAAuthentication no" -o "StrictHostKeyChecking no"
result: same error. Perhaps I am using the wrong options.
I moved known_hosts out of the way and I was, of course, able to connect
without issue. However I'd like to get this to work in the general case.
Does anyone know the correct incantation to reach the other side?
Thanks,
--
David.
More information about the wellylug
mailing list