最近使用 SSH 碰过一个奇怪的问题,通过 IP 可以直接 SSH 登录,但用域名会卡在 connecting 的地方。
- 正常登录
ssh -p 11200 [email protected]
- 无法登录
ssh -p 11200 -v [email protected]
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to host.abc.com port 11200.
第一反应是 DNS 有问题导致域名无法解析,但 ping 域名能正常解析出 IP 地址,所以 DNS 应该是没问题的。请教一下哪位大大知道可能是什么原因导致的?