这是我尝试 ssh 进入服务器时遇到的最奇怪的问题。突然间,我无法从我的工作站 ssh 进入 LAN 上的服务器。但是,我可以在家里顺利完成。/var/log/auth.log 没有帮助,即使将 sshd 日志设置为 VERBOSE:
Oct 18 17:08:35 servername sshd[4171]: refused connect from 192.168.0.7 (192.168.0.7)
ssh -v 输出也没有提供任何有用的信息:
[email protected]:/home/username$ ssh -v [email protected] -p ####
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.0.30 [192.168.0.30] port ####.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
我没有运行 fail2ban,iptables 也没有显示任何奇怪的规则。有人有什么想法或进一步的调试技巧吗?