LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to scp (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-scp-942557/)

abhinav4 04-30-2012 09:28 AM

Unable to scp
 
while doing scp I am getting the below error.

[root@verne .ssh]# scp test_30_April 10.20.52.111:/root
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
91:fa:a5:61:3c:16:03:65:85:3b:a5:e8:be:fb:99:e3.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:1
RSA host key for 10.20.52.111 has changed and you have requested strict checking.
Host key verification failed.
lost connection

suicidaleggroll 04-30-2012 09:31 AM

The host key for that ip has changed since the last time you tried to connect to it. It could be harmless, it might not, all depends on the specific situation. If you determine it's harmless, you can either turn off strict host key checking in your scp command, or open up your known_hosts file and delete the key on line 1.

abhinav4 04-30-2012 09:54 AM

Deleting the line helped me. Thanks :)

Tinkster 04-30-2012 02:02 PM

While your immediate issue is resolved I find the idea that
you're a) copying stuff about to a machine with a public facing
IP as root disconcerting, and b) the fact that you're happy to
delete w/o a mention of a double check off the machine in question
(machines key's don't just change like that) even more so.



Cheers,
Tink


All times are GMT -5. The time now is 06:03 AM.