DDNS ssh 在“SSH2_MSG_KEXINIT 已发送”消息后卡住

DDNS ssh 在“SSH2_MSG_KEXINIT 已发送”消息后卡住

我正在尝试通过互联网设置 ssh 日志记录。我有一个 DDNSnoip.com域,我可以成功 ping 并它到达我的主机。我的路由器上直接配置了 DDNS,并且已转发相关端口(端口 22)。当我执行时,我得到以下信息:ssh -vv [email protected] -p 8001

OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "foo.ddns.net" port 8001
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to foo.ddns.net [123.456.789.100] port 8001.
debug1: Connection established.
debug1: identity file /home/myuser/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/myuser/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to foo.ddns.net:8001 as 'myuser'
debug1: SSH2_MSG_KEXINIT sent

我已经禁用了路由器防火墙、操作系统防火墙,我已经编辑hosts.allowhosts.deny允许一切。如何让 ssh 成功验证或给我一条错误消息?

相关内容