【ssh连接3分钟热度】每次连接不超过3分钟就自己断开,再次连接显示服务器秘钥已改变

本地windows登录服务器A不超过3分钟之后,每次都报错

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ECDSA key sent by the remote host is
SHA256:8UJrMMGgBGsENN8mAZlCMIkk8uHVkeawj9F0EOzoTOc.
Please contact your system administrator.
Add correct host key in C:\\Users\\DELL/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\DELL/.ssh/known_hosts:1
ECDSA host key for 10.4.20.21 has changed and you have requested strict checking.
Host key verification failed.

目前都是手动解决错误
使用另一台服务器B登录服务器A,ssh就不会出错,可以一直保持连接。更懵逼了。
然后在A上运行两次命令之后,可以继续连接。但依旧是3分钟热度

sudo chmod 600 .ssh
sudo chmod 700 .ssh

又或者删除本地windows下的ssh秘钥,但也依旧是3分钟热度。

ssh -v user@ip 是个ssh的debug指令

尝试借助公钥登录,禁止密码登录,无效

感觉遇到个类似的问题,但是find找不到其他know_host文件

其中以为的一些原因,试过之后并不是。仅此记录一下
IP地址冲突
https://blog.csdn.net/cbuy888/article/details/89202394

发布了178 篇原创文章 · 获赞 30 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/ACBattle/article/details/103230465