ssh报错

[root@room9pc01 ~]# ssh -i '/root/桌面/abc.pem' 139.9.60.12
显示如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:5vpfzMAaAiKE7VkasD5ez5naOeQ9QGze5W/yiyZMYhM.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:10
ECDSA host key for 139.9.60.12 has changed and you have requested strict checking.
Host key verification failed.


[root@room9pc01 ~]# > /root/.ssh/known_hosts 清空这个文件的内容就可以了

 

# ssh 192.168.1.163
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:YgSc8PPFo1guc7dZzcOgl25ZWJbgXB7mui076A/8JPI.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:61
ECDSA host key for 192.168.1.163 has changed and you have requested strict checking.
Host key verification failed.

把这个文件里的对应IP的有UUID那行去掉。
/root/.ssh/known_hosts

 

[root@room9pc01 ~]# ssh -i '/root/桌面/abc.pem' 139.9.60.12 格式 ssh -i 密钥 IP
The authenticity of host '139.9.60.12 (139.9.60.12)' can't be established.
ECDSA key fingerprint is SHA256:5vpfzMAaAiKE7VkasD5ez5naOeQ9QGze5W/yiyZMYhM.
ECDSA key fingerprint is MD5:c0:cf:9e:55:40:38:6c:6a:06:8f:31:94:4e:49:55:02.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '139.9.60.12' (ECDSA) to the list of known hosts.

Welcome to Huawei Cloud Service

 

posted @ 2019-04-30 22:59  安于夏  阅读(378)  评论(0编辑  收藏  举报