之前一直用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 192.168.3.1
执行命令
然后问题解决