SSH 连接问题

SSH 连接问题

我在家里使用简单的 SSH 连接时遇到了麻烦。

我在 Ubuntu 服务器上安装了 openSSH。我生成了 rsa 和 dsa,但这个 ssh 连接在等待一个我无法理解的 MSG 包时停止了。我之前安装了 no-ip 并将其链接到我的网络,但我认为这不是问题所在。

OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to blue-house.servebeer.com [87.221.76.172] port 22.
debug1: Connection established.
debug1: identity file /home/miguel/.ssh/id_rsa type -1
debug1: identity file /home/miguel/.ssh/id_rsa-cert type -1
debug1: identity file /home/miguel/.ssh/id_dsa type -1
debug1: identity file /home/miguel/.ssh/id_dsa-cert type -1
debug1: identity file /home/miguel/.ssh/id_ecdsa type -1
debug1: identity file /home/miguel/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version dropbear_0.36
debug1: no match: dropbear_0.36
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1p1 Debian-4
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client 3des-cbc hmac-md5 none
debug1: kex: client->server 3des-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
Read from socket failed: Connection reset by peer

更新 1:我的路由器中有一些与 dropbear_o.36 相关的东西,它已经很旧了。

这里发布了一张图片,显示我可以直接使用我的 IP 进行连接,但使用 DNS(我设置了 2 个,no-ip 和 freedns,但得到了相同的结果)

截屏

我想我无法再更新我的路由器固件了...我该怎么办?

答案1

这解决了我类似的问题:

apt-get install putty-tools
plink admin@routerip
...
Server version: SSH-2.0-dropbear_0.46
Using SSH protocol version 2
We claim version: SSH-2.0-PuTTY_Local:_Aug_11_2013_21:26:51
Using Diffie-Hellman with standard group "group1"
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1040 d6:8f:96:ec:73:70:67:33:70:a7:52:a6:8a:2f:56:14
Initialised triple-DES CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised triple-DES CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "admin".
[email protected]'s password: 

相关内容