ssh/sftp failure connection


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ssh/sftp failure connection
# 1  
Old 03-26-2007
ssh/sftp failure connection

Hello,


I just want to ask regarding the meaning of the error that we got using sftp:
Code:
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.
# 2  
Old 03-26-2007
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
# 3  
Old 03-26-2007
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?
# 4  
Old 03-27-2007
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
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

2. UNIX for Advanced & Expert Users

How keep running a program n an another computer via a connection ssh when the connection is closed?

Hi everybody, I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop. I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies

3. Shell Programming and Scripting

SFTP Failure

Hi , I need to write a IF condition to know if a SFTP file transfer is successful or not and send email if its failed. `sftp username@servername <<comm1 cd /directory put filename comm1 bye` I use above commands for my connections. So please help me to write a IF statement. ... (0 Replies)
Discussion started by: krishna87
0 Replies

4. Shell Programming and Scripting

ssh/sftp connection refused

Hi all, I logged on to a Unix server and am trying to connect a remote Windows server (Windows NT) via SSH/SFTP. However I always got the following error, sftp username@host_server (or ssh username@host_server) ssh: connect to host host_server port 22: Connection refused Any advise... (1 Reply)
Discussion started by: isaacniu
1 Replies

5. Shell Programming and Scripting

Sftp failure

Hello, Sometimes when i execute my shell that makes sftp it gives me this error: Couldn't close file: Failure. What does it mean?, how can i make sure it will do ok?. Bye (2 Replies)
Discussion started by: rubber08
2 Replies

6. Shell Programming and Scripting

Success/failure status of telnet connection

Hi, I am running a shell script which will spawn the telnet and login. But sometimes, the telnet session itself is not getting spawned. My requirement is, if the telnet session is not spawned, the user must be notified that it failed. Is there any command to capture the status of telnet... (2 Replies)
Discussion started by: merin
2 Replies

7. Shell Programming and Scripting

Retrying a remote connection after failure

Hi all, I am new to this forum and want an urgent help from you experts. I am currently using SunOs 5.10. I have a .cfi file which contains some commands to be executed in a node(MSC node in telecom) To connect to a node (for eg node name is MSC1) we have a shell script that has the... (5 Replies)
Discussion started by: interceptor16
5 Replies

8. Shell Programming and Scripting

Password less connection(sftp/ssh)

Dear All, I'm trying to configure a passwordless connection between two servers of HP-UX. i have srearched the configuration in google so many times and as per the guidence i have done all the steps, but still its not working and every time it is asking for password while trying to scp some file... (2 Replies)
Discussion started by: panknil
2 Replies

9. UNIX for Dummies Questions & Answers

Intermittent Printer connection failure

Hi There What causes the remote printers on unix to loose its connections to the Unix server Sco 6 Version 7 When pinging the print server from unix is comes up with host not connected, but after a few moments the ping reply is positive Then we do a disable and enable of the said printer... (0 Replies)
Discussion started by: esh
0 Replies
Login or Register to Ask a Question