【发布时间】:2013-06-17 05:59:53
【问题描述】:
我已将 ssh 端口号从 22 更改为 2222 之前设置连接到默认 ssh 端口 22 没问题 我已经正确映射了路由器上的 NAT
当我尝试调试它时
ssh -v -p2222 www.example.com
我得到这个错误挂起
debug1: SSH2_MSG_KEXINIT
以下是所有调试日志
bob@server:~$ ssh -v -p2222 www.example.com
OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to www.example.com [100.100.100.100] port 2222.
debug1: Connection established.
debug1: identity file /home/bob/.ssh/identity type -1
debug1: identity file /home/bob/.ssh/id_rsa type -1
debug1: identity file /home/bob/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 100.100.100.100
就像那个连接被关闭一样 我在网络内外的几台机器上使用了 gnome-terminal、putty、securecrt 仍然都得到相同的错误
【问题讨论】:
-
最好在unix.stackexchange.com 或askubuntu.com 上询问
标签: ssh