LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-11-2010, 12:18 PM   #1
redfeet
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:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
19:66:6b:62:fc:a3:11:b6:c5:21:40:2d:71:07:04:7f.
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 192.168.1.39 has changed and you have requested strict checking.
Host key verification failed.


I hope someone understand what I mean

//redfeet
 
Old 02-11-2010, 12:22 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
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, 12:38 PM   #3
prasanta
Member
 
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.

Quote:
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.

--
Prasanta
 
Old 02-11-2010, 12:39 PM   #4
redfeet
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!!!
 
  


Reply


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 04:42 PM
ssh problem: key exchange failed feetyouwell Solaris / OpenSolaris 5 02-11-2005 02:27 PM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 01:28 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 11:04 PM
Postfix / Warnings hostname verification failed: Host not found rioguia Linux - Software 2 10-21-2004 03:15 PM


All times are GMT -5. The time now is 07:35 AM.

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