LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-17-2008, 02:49 PM   #1
bryanedwards05
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:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
12:ca:d6:36:52:a5:7a:ad:4e:88:c8:d7:e6:65:5f:a0.
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 209.26.235.121 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.

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

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

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

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



Cheers,
Tink
 
  


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


All times are GMT -5. The time now is 04:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration