LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2008, 11:44 AM   #1
koriban
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
ssh client und StrictHostKeyChecking (Debian)


I'm maintaining several servers hosted at Amazon's EC2 Grid. The problem is that servers are running under XEN and everytime an instance is launched, a new key is generated in /etc/ssh/ssh_host_rsa_key .

Now when I login to the server via ssh I'm receiving the following error as expected:

Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
91:8c:61:5b:b3:78:eb:0b:23:ed:28:a3:84:b2:d5:11.
Please contact your system administrator.
Which is strange because I connect like this:

Code:
ssh -o StrictHostKeyChecking=no xx.xx.x.xx
Which should - unless I am mistaken - supress the obove error message.

Any suggestions?

By the way I'm totally aware of the possible security implications of doing this but my actual use case is Nagios's check_by_ssh command where it would be totally counter productive to manually delete the host key from known_hosts every time the server is restarted.
 
Old 08-31-2008, 12:13 PM   #2
koriban
LQ Newbie
 
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Solved: The host key checking was actually supressed but Nagio's check_by_ssh command got confused by the Warning message that ssh still emitted when it encountered the key mismatch. This could be solved by passing the -q option to check_by_ssh.
 
  


Reply



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
apache und mso xpucto Linux - Server 2 06-27-2007 06:20 AM
Lilo und windowsXP Voyager_MP Linux - General 2 07-06-2004 09:27 PM
ZipSlack und X laurik Slackware 2 05-09-2003 12:53 AM
RH und Postgresql emr Linux - Newbie 0 12-14-2002 08:57 AM
Nullmodem und danach ??? Roland MB Linux - Networking 1 04-04-2002 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 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
Open Source Consulting | Domain Registration