«

【SSH】再次发起SSH请求时由于服务端密码变更导致指纹校验失败 Host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.

azurekiln 发布于 阅读:19


报错提示:

PS C:\Users\username> ssh root@xxx.xxx.xxx.xxx
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:J+C4+3L0VS3QudwJtg3RPTqJS6yFJ0zf1o7lkZtrHKY.
Please contact your system administrator.
Add correct host key in C:\\Users\\username/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in C:\\Users\\username/.ssh/known_hosts:21
Host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.

解决方法:

ssh-keygen -R xxx.xxx.xxx.xxx

SSH


扫描二维码,在手机上阅读
收藏
请先 登录 再评论