我尝试使用以下命令将数据从远程计算机复制到我的计算机:
-bash-4.1$ scp gouda@csopt5:/home/gouda/bin/fort.20 home/gouda/Desktop
but I got this message and I couldn't copy my file fort.20.
how to solve this problem
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for csopt5 has changed,
and the key for the corresponding IP address 172.17.4.15
is unchanged. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
Offending key for IP in /etc/ssh/ssh_known_hosts:4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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.
The fingerprint for the RSA key sent by the remote host is
1b:a0:e7:43:0d:98:a6:42:01:52:9b:af:f9:d6:08:1c.
Please contact your system administrator.
Add correct host key in /home/gouda/.ssh/known_hosts to get rid of this message.
Offending key in /home/gouda/.ssh/known_hosts:3
RSA host key for csopt5 has changed and you have requested strict checking.
Host key verification failed.
答案1
我的错误来自于尝试从文件夹内部复制。我必须从文件外部而不是内部使用 scp 。感谢所有人的努力。
答案2
- 转到/home/你的用户名/.ssh/
- 打开“known_hosts”文件清除其中的内容
- 保存文件
- 重试 ssh 命令
- ???
- 利润