On Wed Apr 08, 2009 at 02:03:03 +0300, Dotan Cohen wrote: > $ ssh -X u...@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 u...@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/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org