我ssh
config
已经使用了几个月了。配置是这样设置的:
Host <hostname>
Hostname <ip address in config>
User <username>
Identityfile /Users/<username>/.ssh/id_rsa
ForwardAgent
而且它一直只是做而起作用ssh <hostname>
。突然之间,今天它在冗长的输出中超时了:
ssh -vv <hostname>
OpenSSH_7.3p1, LibreSSL 2.4.1
debug1: Reading configuration data /Users/usernamei/.ssh/config
debug1: /Users/usernamei/.ssh/config line 10: Applying options for *
debug1: /Users/usernamei/.ssh/config line 56: Applying options for <hostname>
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug2: resolving "<ip address>" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to <ip address> [<ip address>] port 22.
debug1: connect to address <ip address> port 22: Connection refused
ssh: connect to host <ip address> port 22: Connection refused
我在macOSX
。我什至无法在配置中ping地址:
ping <ip address in config>
上面的命令超时了
我无法弄清楚自己在做什么。有人可以帮帮我吗?可能是什么原因?
1
您可以控制目标主机吗?它看起来像网络连接问题。目标主机或您的网络配置是否发生了变化?
—
rsm
都没有改变AFAICT。有没有一种方法可以诊断是哪一个?(即主机还是配置?)
—
尊重