On Wed Apr 08, 2009 at 02:03:03 +0300, Dotan Cohen wrote:
> $ ssh -X [email protected]
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Is there a way to override the check, and to have it accept the new
> key? I went through the SSH manpage and there was no mention of an
> override command.
You already had several answers, but this is one that I'd like to
share regardless:
#
# Connect to ssh without recording host-key
#
sshtmp ()
{
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "$@"
}
I have that in ~/.bash_profile and it lets me run:
sshtmp [email protected]
The key is ignored, obviously not a thing to do casually, but there
are times when it is useful.
Steve
--
Stop blog&forum spam
http://blogspam.net/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]