ssh报的一个错

来源:互联网 发布:有没有唱歌软件 编辑:程序博客网 时间:2024/06/07 03:28

问题描述:之前用ssh都没问题,今天登陆的时候,报了一个错.
报错原因现在分析应该是因为我中午把我自己的服务器的系统换了.而本地证书有缓存.所以ssh连接失败.
以下是解决的步骤.

qupengweideAir:~ qupengwei$ sudo ssh 123.123.123.123@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@    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 isSHA256:moWTczwHrxEsXzISX4JP65KPBJHp2AyM3tVlI7wlrOw.Please contact your system administrator.Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.Offending ECDSA key in /var/root/.ssh/known_hosts:2RSA host key for 123.123.123.123 has changed and you have requested strict checking.Host key verification failed.qupengweideAir:~ qupengwei$ sudo rm /var/root/.ssh/known_hostsqupengweideAir:~ qupengwei$ sudo ssh 123.123.123.123The authenticity of host '123.123.123.123(123.123.123.123)' can't be established.RSA key fingerprint is SHA256:moWTczwHrxEsXzISX4JP65KPBJHp2AyM3tVlI7wlrOw.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '123.123.123.123' (RSA) to the list of known hosts.root@123.123.123.123's password: Last login: Fri Sep 22 16:05:19 2017Welcome to Alibaba Cloud Elastic Compute Service ![root@iZ2zegpk4babzovldarxqnZ ~]# 

登陆成功!

原创粉丝点击