备忘 - WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! 问题解决

简介:

服务器重做系统后,Mac上的Iterm SSH登录报错,信息如下:

ChrisdeMacBook-Pro:~ chris$ ssh root@192.168.100.107
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:+kTz3uZba/6kb7NMG5WGOLWySRVzRZHGpVmgSOXEnNg.
Please contact your system administrator.
Add correct host key in /Users/chris/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/chris/.ssh/known_hosts:6
RSA host key for 192.168.100.107 has changed and you have requested strict checking.
Host key verification failed.

仔细观察错误信息,发现这一行:Offending RSA key in /Users/chris/.ssh/known_hosts:6。经过推断,应该是key发生了变化导致的,尝试把Users/chris/.ssh/known_hosts文件中100.107的key删掉,重新连接就可以了。

目录
相关文章
|
IDE Shell 网络安全
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
398 0
Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
|
网络安全 开发工具 git
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
3747 0
Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
|
6月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
533 0
|
6月前
|
缓存 数据安全/隐私保护 Windows
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
ECDSA host key for ... has changed and you have requested strict checking.Host key verification fail
|
6月前
|
网络安全
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
完美解决 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
1880 0
|
开发工具 git
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
git push报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
187 0
|
安全 网络安全 开发工具
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
489 0
【已解决】Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh
|
Linux 网络安全
WARNING:The remote SSH server rejected X11 forwarding request.
WARNING:The remote SSH server rejected X11 forwarding request.
202 0
WARNING:The remote SSH server rejected X11 forwarding request.
|
开发工具 git
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
146 0
【Git】WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
|
网络安全 开发工具
Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss
Unable to negotiate with XX.XX.XX.XX: no matching host key type found. Their offer: ssh-dss