为什么已经运行了几个月的 ssh 突然挂起并且连接被拒绝?

为什么已经运行了几个月的 ssh 突然挂起并且连接被拒绝?

我有一个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

Connection refused表示目标主机可用,但未运行sshd守护进程来接受您的连接。请与该主机的系统管理员核实。

ping多年来,无法托管已经毫无意义。我不知道为什么人们仍然认为这是一个问题。

相关内容