[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disabling RSA host key check temporarily



On Wed Apr 08, 2009 at 02:03:03 +0300, Dotan Cohen wrote:

> $ ssh -X user@x.x.x.x
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    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 user@1.2.3.4

  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/


Reply to: