Debian ssh 连接被拒绝

Debian ssh 连接被拒绝

我正在运行一台旧的 HP ProLiant DL360p gen8 服务器用于家庭自动化。主要是 node-red、mysql 和用于图表的 grafana 实例。运行大约一年后,今天我无法使用 MobaXTerm 进行 ssh,并收到“远程端意外关闭网络连接”消息。尝试从 Windows PowerShell 进行 ssh 时,我得到了

Unable to negotiate with 192.168.100.13 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

我最终网站解释了一个可能的解决方案并得出了这个结论。

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -c aes256-cbc [email protected]

它至少会要求我输入密码,然后给我一个

Connection to 192.168.100.13 closed by remote host.
Connection to 192.168.100.13 closed.

我第一次尝试这个时得到了类似这样的结果(从 DigitalOcean 线程复制而来)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
51:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68.
Please contact your system administrator.
Add correct host key in /Users/isaacalves/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/isaacalves/.ssh/known_hosts:12
RSA host key for 104.131.16.158 has changed and you have requested strict checking.
Host key verification failed.

奇怪的是,我的服务(node-red、mysql、grafana)都没有响应。

做了

apt-get update

随后

apt-get upgrade

我以为我需要更新系统。没有变化。我是不是被黑了?:))

答案1

我最终更改了服务器的静态 IP,问题就解决了。现在我要做的就是找到冒充设备。正如 user1686 提到的,它似乎是一台旧的 NAS 或 wifi 路由器。

相关内容