码迷,mamicode.com
首页 > 其他好文 > 详细

ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED

时间:2020-04-04 09:38:24      阅读:68      评论:0      收藏:0      [点我收藏+]

标签:报错信息   col   linux   bee   this   drop   div   opp   dsa   

找到known_hosts文件把里面相应的主机那行删除即可

MAC/Linux
vi ~/.ssh/known_hosts

Windows
C:\Users\用户登陆名\.ssh\known_hosts

报错信息:

?  ssh root@mongo.top
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:JqlKtQzSrgYOb5Jm0BcNSAoyPjvz57srOKOfbUgvpeY.
Please contact your system administrator.
Add correct host key in /Users/zhan/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/zhan/.ssh/known_hosts:3
ECDSA host key for mongo.top has changed and you have requested strict checking.
Host key verification failed.
? vi /Users/zhan/.ssh/known_hosts

重新登陆即可

ssh登陆提示 REMOTE HOST IDENTIFICATION HAS CHANGED

标签:报错信息   col   linux   bee   this   drop   div   opp   dsa   

原文地址:https://www.cnblogs.com/v5captain/p/12630278.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!