Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-11-2010, 11:18 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Ssh problem: Host key verification failed

Hello, I have some problem with Ssh.
I have 3 computers
The first one I have Ubuntu 9.10
The second and third I have Ubuntu server 9.10.

I can go with ssh from computer 1 to 2 but not from 1 to 3
I can go with ssh from computer 2 to 3, so technical I can go from 1 to 3 if I go through computer 2. But the second computer will be gone so I will have the third computer up and runing and computer 1 and 3 will talk to each other

I get a error message when I try from computer 1 to 3:
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
Please contact your system administrator.
Add correct host key in /home/username/.ssh/known_hosts to get rid of this message.
Offending key in /home/username/.ssh/known_hosts:1
RSA host key for has changed and you have requested strict checking.
Host key verification failed.

I hope someone understand what I mean

Old 02-11-2010, 11:22 AM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Please use code tags.

Probably one of two things has occurred: 1) you connected from host1 -> host3 over ssh at some point, accepted host3's host key, and then later rebuilt host3 entirely; 2) someone is conducting a MITM attack against you.

Consider your environment and the likelihood of #1 vs. #2. If the former is highly likely to be true, the error message points you to the file where host3's host key is stored. (You can edit that file to remove the old entry.)
Old 02-11-2010, 11:38 AM   #3
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
vi +1 .ssh/known_hosts

Use `dd` to delete that line. Save the file and try doing ssh again.

Offending key in /home/username/.ssh/known_hosts:1
Here, 1 indicates the line where it is getting the error in the .ssh/known_hosts file.

Old 02-11-2010, 11:39 AM   #4
LQ Newbie
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I removed /home/username/.ssh/known_host and then tried again and it works
You saved many hair shafts on my head

Thanks a lot!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh host key problem Amaranthus Linux - Newbie 7 12-15-2009 03:42 PM
ssh problem: key exchange failed feetyouwell Solaris / OpenSolaris 5 02-11-2005 01:27 PM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 12:28 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 10:04 PM
Postfix / Warnings hostname verification failed: Host not found rioguia Linux - Software 2 10-21-2004 02:15 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration