Tom Nielsen wrote:
I'm trying to scp a file from my mailserver to my computer. I can ssh into the mailserver without a problem, but when I try to scp something, I get:
mailserver:~ # scp mailserver.tar root@192.168.112.2:/mnt/cd/mailserver/ 3283: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3283: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 3283: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 3283: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 3283: Someone could be eavesdropping on you right now (man-in-the-middle attack)! 3283: It is also possible that the RSA host key has just been changed. 3283: The fingerprint for the RSA key sent by the remote host is 1d:85:0b:77:c6:42:e0:77:52:bc:7a:5f:f4:5c:7c:6a. 3283: Please contact your system administrator. 3283: Add correct host key in /root/.ssh/known_hosts to get rid of this message. 3283: Offending key in /root/.ssh/known_hosts:1 3283: RSA host key for 192.168.0.2 has changed and you have requested strict checking. 3283: Host key verification failed. lost connection
What does this mean?
Tom
It's nice to get a warning, so you can see if it's due to something you've done or another box is pretending to be yours in an office environment. Delete the line for 192.168.0.2 in /root/.ssh/known_hosts and do the scp again, accept the key and away you go. This happens e.g if you rebuild a box, the generated key is different from the one recorded on your previous transactions. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.