LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   unable to do ssh (https://www.linuxquestions.org/questions/linux-software-2/unable-to-do-ssh-776585/)

ramesh14 12-17-2009 11:20 PM

unable to do ssh
 
HI,

In my lan environment i've configured a server with rhel5 and a desktop with fc12.I was unable to ssh between rhel5 & fc12 & vice versa. when i'm trying to login through ssh i was getting following error

#ssh admin@x.x.x.x
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
The fingerprint for the RSA key sent by the remote host is
b4:fc:8b:09:91:e6:7a:f9:ed:b0:98:da:68:f3:d2:04.
Please contact your system administrator.
Add correct host key in /home/admin/.ssh/known_hosts to get rid of this message.
Offending key in /home/admin/.ssh/known_hosts:12
RSA host key for x.x.x.x has changed and you have requested strict checking.
Host key verification failed.

can any one help me regarding this.

Thanks in advance.

Elv13 12-17-2009 11:28 PM

rm ~/.ssh/known_hosts

ramesh14 12-17-2009 11:56 PM

I tried with this then also i'm getting the same old error.

Skaperen 12-18-2009 09:42 AM

Are you accessing an address of a load balancer that goes to multiple machines? Or could the server you ssh to have some cron job that keeps updating the host key?

Instead of removing the known_hosts file, rename it sequentially numbered. When it happens again, compare the new file to the old one and see if there is a difference. If not, this will require new ideas about the cause.

evo2 12-18-2009 10:06 AM

Quote:

Originally Posted by ramesh14 (Post 3796266)
I tried with this then also i'm getting the same old error.

You removed your .ssh/known_hosts file and got *exactly* the same error? I find that hard to believe. Can you please clarify?

Evo2.


All times are GMT -5. The time now is 02:19 AM.