我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

linux下ssh连接服务器出现WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED怎么解决

本篇内容主要讲解“linux下ssh连接服务器出现WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED怎么解决”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“linux下ssh连接服务器出现WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED怎么解决”吧!

创新互联公司长期为上1000+客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为善左企业提供专业的网站设计制作、成都网站设计,善左网站改版等技术服务。拥有10多年丰富建站经验和众多成功案例,为您定制开发。

[root@zk01 ~]# ssh localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:r86jc/Vu8phhiKKDSntetfkmksjQ606ZlUP8XNYe44U.
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
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password,keyboard-interactive).

说明: Add correct host key in /root/.ssh/known_hosts to get rid of this message.  重点在这句话

分析: ssh登录过某机器后,因某机器有变动(更换ip等),再次登录不了,报错!!!

解决过程:

[root@zk01 ~]# mv /root/.ssh/known_hosts /root/.ssh/known_hosts.bak

[root@zk01 ~]# ssh -o StrictHostKeyChecking=no 172.16.38.130
Warning: Permanently added '172.16.38.130' (ECDSA) to the list of known hosts.
root@172.16.38.130's password: 
Last login: Sun Oct 1 12:02:21 2017 from 172.16.74.104

[root@zk01 ~]# ssh localhost      ## 输入密码,OK!
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
root@localhost's password: 
Last login: Sun Oct 1 12:04:59 2017 from zk01

到此,相信大家对“linux下ssh连接服务器出现WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED怎么解决”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


本文题目:linux下ssh连接服务器出现WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED怎么解决
文章URL:http://mswzjz.cn/article/gscgod.html

其他资讯