ssh - Ubuntu-ssh - - 警告 : REMOTE HOST IDENTIFICATION HAS CHANGED

标签 ssh openssh

我无法通过 ssh 和 rysnc 连接到远程系统。它不断给出此错误消息:

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
a3:8f:7c:07:c9:12:d8:aa:cd:c2:ba:b3:27:68:bc:c2.
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:8
RSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.8]

我已删除 authorized_keys文件来自/home/user/.ssh .

最佳答案

使用以下命令从 .ssh/known_hosts 文件中删除旧 key

ssh-keygen -R <host>

关于ssh - Ubuntu-ssh - - 警告 : REMOTE HOST IDENTIFICATION HAS CHANGED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8654064/

相关文章:

visual-studio - Visual Studio + FreeBSD服务器+ ssh =?

python - MySQL连接错误: Access denied for user 'rnd-admin' @'localhost' (using password: YES)

php - 如何在Windows的PHP5.6上安装ssh2扩展

perl - 无法在未引用的引用上调用 “capture2”方法

ssh - Cygwin OpenSSH服务器从PHP发出第一个命令后不响应(使用phpseclib)

linux - 如何将文件从通过 SSH 连接的计算机移动到 VPS?

java - 在 java (Jsch) 上通过 SSH 连接到 Windows 时出现奇怪的符号

laravel - 在SSH Laravel 5.2中运行工匠代码

成功登录后 SSH 连接卡住(有时)

git - Hudson+Git克隆失败