Ubuntu-ssh--警告:远程主机标识已更改 [英] Ubuntu-ssh - - WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

查看:405
本文介绍了Ubuntu-ssh--警告:远程主机标识已更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法ssh和rysnc到远程系统.它不断给出此错误消息:

I'm unable to ssh and rysnc to a remote system. It keeps giving this error message:

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]

我已从/home/user/.ssh中删除了authorized_keys文件.

推荐答案

该消息显示"/root/.ssh/known_hosts"不是authorized_keys. 从该文件中删除该文件(或至少相应的密钥),然后您可以再次访问!但是请注意:更改密钥一定是有原因的.系统是否已重新安装?确保您检查或整个ssh的想法都是无效的.

The message says "/root/.ssh/known_hosts" not authorized_keys. Remove that file (or at least the corresponding key) from it and you can go again! But be aware that: There must be a reason why the key changed. Was the system reinstalled? Make sure you check that or the whole idea of ssh is void.

顺便说一句:您以root身份使用ssh吗?

BTW.: Is there a reason you ssh as root?

这篇关于Ubuntu-ssh--警告:远程主机标识已更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆