当前位置: 代码迷 >> 综合 >> SHA256:FlR9BwwrmAxEX7QaQZMv1ejf8l0kwHvSzFlzqu8/VYM. Please contact your system administrator. Add co
  详细解决方案

SHA256:FlR9BwwrmAxEX7QaQZMv1ejf8l0kwHvSzFlzqu8/VYM. Please contact your system administrator. Add co

热度:121   发布时间:2023-09-18 17:54:44.0

项目场景:

之前一直用linux ssh连接服务器,今天因为需要用windows 连接服务器


问题描述:

window 终端ssh 命令连接服务器
ssh admin@192.168.3.1
出现如下错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 is
SHA256:FlR9BwwrmAxEX7QaQZMv1ejf8l0kwHvSzFlzqu8/VYM.
Please contact your system administrator.
Add correct host key in C:\\Users\\lkk/.ssh/known_hosts to get rid of this message.
Offending RSA key in C:\\Users\\lkk/.ssh/known_hosts:3
RSA host key for 192.168.3.1 has changed and you have requested strict checking.
Host key verification failed.

原因分析:

第一次ssh链接的时候会生成一个认证凭据,存储在客户端中的known_hosts,如果服务器地址重置or重新安装了,就会产生这个问题


解决方案:

ssh-keygen -R 服务器地址

如:
ssh-keygen -R 192.168.3.1
执行命令
然后问题解决

  相关解决方案