The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to detect failure from batch SFTP and SHELL operations chengwei Shell Programming and Scripting 2 05-28-2008 04:32 AM
Intermittent Printer connection failure esh UNIX for Dummies Questions & Answers 0 12-12-2007 07:30 AM
Validate Failure of SFTP in PERL rahulrathod Shell Programming and Scripting 5 09-23-2005 05:37 PM
ld failure handak9 High Level Programming 2 09-29-2004 07:56 AM
CPU failure??? 98_1LE UNIX for Dummies Questions & Answers 1 01-23-2001 02:38 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2007
Registered User
 

Join Date: Sep 2005
Posts: 10
ssh/sftp failure connection

Hello,


I just want to ask regarding the meaning of the error that we got using sftp:
Connecting to <TARGET SERVER IP>...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
<FINGERPRINT>.
Please contact your system administrator.
Add correct host key in .ssh/known_hosts to get rid of this message.
Offending key in .ssh/known_hosts:10
DSA host key for <TARGET SERVER IP> has changed and you have requested strict checking.
Host key verification failed.
Connection closed

Is that saying it has an error in line 10 of the known_hosts file?
We are suspecting that it has been corrupted. What we will do is to remove that line (#10) and manually sftp to that target server to set the known_hosts file, then we run the script afterwards. Please advice. Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 03-26-2007
Registered User
 

Join Date: Sep 2006
Posts: 90
the fix

cd into the directory. vi the known_hosts files. get to the hostname entry and remove that line. then retry your session. you just need to take it out to set up a new trust relationship from the server your on to the server your going to.

-S
Reply With Quote
  #3  
Old 03-26-2007
Registered User
 

Join Date: Sep 2005
Posts: 10
why it failed?

Thank you very much for the confirmation.

Do have any idea why it did got that error? It is working before and there are no changes on both sides probably.

What would be the cause that it is success connection one time, not success on another? is that on the source server setup? or on the target server having changes?
Reply With Quote
  #4  
Old 03-27-2007
Registered User
 

Join Date: Sep 2006
Posts: 90
changed

here are some pretty explanations as to why it happens.

http://erdelynet.com/archive/ssh-l/2003-05/1607.html

http://www.astro.princeton.edu/fom-serv/cache/113.html

They are pretty good links. Should answer your questions. I am running out of time, a quick google search was easier!

-S
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0