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.

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

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?

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