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

Re: How to get new RSA key in known_hosts file?



On Thu, 24 May 2012 20:24:49 -0700
Marc Shapiro <marcnshap@gmail.com> wrote:

> I recently had to reinstall Squeeze on my desktop box due to hard disk
> issues.  On reinstalling OpenSSH a new key was generated.  Now, when I
> try to connect from my laptop I get the following message:
> 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

...

> How do I manually enter the rsa key, or get ssh to do so, so that  I
> can connect again?

Issue 'ssh-keygen -R your_hostname_or_ip_address'

Then try reconnecting.

Celejar


Reply to: