You add nothing; you find the offending key for that host and remove it.
When you reinstall, a new SSH key gets generated, overwriting your old
key on the server. The client however only knows the old key, they
mismatch and ssh gets suspicious. So just find the old key in your
$HOME/.ssh/known_hosts file and remove it (there might be multiple
instances: one for the IP, one or more for the hostname/hostnames).

On Sun, 2002-05-05 at 06:24, David Rankin wrote:
> 
> Here is the message I get when I try to SSH from work back to home where
> 8.2 is running:
> 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that the RSA host key has just been changed.
> Please contact your system administrator.
> Add correct host key in /home/david/.ssh/known_hosts to get rid of this message.
> Password authentication is disabled to avoid trojan horses.
> Permission denied.
> 
> Never had problems with 7.2, so what do I add to .ssh/known_hosts????????
> 
> -- 
> David C. Rankin, J.D., P.E.
> RANKIN * BERTIN, PLLC
> 1329 N. University Dr., Suite D4
> Nacogdoches, Texas 75961
> (936) 715-9333
> (936) 715-9339 fax
> 
> 
> ----
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 

Rial Juan                        <http://nighty.ulyssis.org>
                e-mail:                  [EMAIL PROTECTED]
                   ICQ:                            20135549
                   MSN:          [EMAIL PROTECTED]
Belgium            tel:                        ++3289856533
              cellular:                       ++32496737018
ulyssis system admininstrator       <http://www.ulyssis.org>

This message will self-destruct when raped by leprechauns...

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to