提示警告信息如下:
C:\Users\65740> ssh 10.18.46.111
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
08:98:a9:cc:f8:37:20:6b:b4:b1:6c:3a:15:b9:a9:92.
Please contact your system administrator.
Add correct host key in C:\\\\Users\\65740\\.ssh\\known_hosts to get rid of this message.
Offending key in C:\\Users\\65740\\.ssh\\known_hosts:2
RSA host key for 10.18.46.111 has changed and you have requested strict checking.
Host key verification failed.
原因分析:
It is also possible that a host key has just been changed!
因为原来建立过ssh连接, 有过公钥记录, 然而我对服务器的系统进行了重装, 公钥变了, 所以无法与之进行ssh连接
解决: 删除公钥记录
删除 C:\\Users\\65740\\.ssh\\known_hosts
文件或者删除known_hosts
中服务器的公钥部分
然后重新进行ssh连接即可