About

Information is always Worth to save ...

Wednesday, April 18, 2007

Warning:REMOTE HOST IDENTIFICATION HAS CHANGED!

If you are getting an error like when you are using SSH or SFTP just remove the
the .ssh folder from /home/ or from /root/
thats it try now you wont get any error

ERROR:
Connecting to .......
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
..............................................................................
Host key verification failed.
Couldn't read packet: Connection reset by peer

Usage of SCP command

If you are downloading folders from sftp,It wont be possible
though there is a solution to this using scp command in the unix
the detailed Info about SCP and SFTP Problem is

If you try to copy a folder using the get or mget commands, sftp will complain that it "Cannot download non-regular file: filename". This is because the basic sftp client doesn't allow for a recursive copy. However, the program scp will allow you to do this. The scp command will not allow you to see what's on the sftp server, so the files need to be located using the sftp client.

Note: the scp command is a Unix command, and needs to be run from the Unix prompt. NOT within the SFTP client.

Usage: scp user@host:remote-path local-path

scp is like the Unix command cp and should work similarly. To copy a file from your Unix home directory and put it in the working directory, use the following command:

To recursively copy files or directories from your CAE account, use the -r switch.

For example, to copy the entire directory "tutorial" from my CAE Unix home directory to the home directory on your machine, the following command would be used:

ComputerName:~ # scp -r username@:~/tutorial ~/