Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-17-2008, 01:49 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
trouble with SSH connection

I am trying to connect to my Linux server from my mac using ssh. I have verified that SSH is enabled on the linux box but for some reason when I try to connect I get the following error message:

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 /Users/Bryan/.ssh/known_hosts to get rid of this message.
Offending key in /Users/Bryan/.ssh/known_hosts:2
RSA host key for has changed and you have requested strict checking.
Host key verification failed.

Before hand I was using openSuse, and could connect fine. I have just switched over to CentOS and am now unable to connect, and just to verify again, I have already checked to see if ssh is enabled.

Thanks for any help.

Old 03-17-2008, 02:15 PM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Find the known_hosts file and delete the line for that server ( then reconnect.
Old 03-17-2008, 02:36 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ!

Originally Posted by bryanedwards05 View Post
Before hand I was using openSuse, and could connect fine. I have just switched over to CentOS and am now unable to connect
And while the resolution in the previous post is correct I
think we owe you an explanation as to WHAT is going on.

The machine's ssh key is generated on install (or the first
time ssh is started, depending on the distro), and is unique.

So if you re-install you will get a new machine key each time,
and you client will (HAS TO!!!!) complain if it changes, to
avoid a man in the middle or IP spoofing attack that may allow
the remote attacker to get access to the password for your real
machine. Don't ignore those messages if you see them.



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
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
trouble with chroot ssh slug420 Linux - Security 6 08-10-2004 01:34 PM
Having trouble configuring SSH Travis86 Linux - Networking 3 06-19-2003 09:42 PM
Trouble starrting ssh balaram Linux - Newbie 3 02-09-2002 05:45 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 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