ssh - 控制套接字不存在 - 操作超时 [英] ssh - Control socket does not exist - Operation timed out
问题描述
当我尝试从我的 Mac SSH 连接到我的远程桌面时,我收到此错误消息:
When I try to SSH on to my remote desktop from my Mac, I get this error message:
$ ssh -vvvv john@dev-dsk-john.com
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /Users/john/.ssh/config
debug1: /Users/john/.ssh/config line 26: Applying options for *
debug1: /Users/john/.ssh/config line 40: Applying options for dev-dsk*.amazon.com
debug1: /Users/john/.ssh/config line 165: Applying options for *.us-east-*.amazon.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/ssh_mux_dev-dsk-john.com_22_john" does not exist
debug2: resolving "dev-dsk-john.com" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to dev-dsk-john.com [10.1.133.160] port 22.
debug1: connect to address 10.1.1.1 port 22: Operation timed out
ssh: connect to host dev-dsk-john.com port 22: Operation timed out
连接挂在debug1:连接到 dev-dsk-john.com [10.1.133.160] 端口 22."
The connection hangs at "debug1: Connecting to dev-dsk-john.com [10.1.133.160] port 22."
三天前它还在工作.
系统说主机仍然处于活动状态,所以我很确定计算机仍然处于开机状态.
The system says the host is still active, so I'm pretty sure the computer is still powered on.
推荐答案
我今天遇到了同样的问题,最后设法解决了.
I faced the same problem today, and finally managed to fixed it.
我首先确认控制套接字确实不存在.我的路径是/home/ethan/.ssh/controlmasters/ethan@a.b.c.d:22",但不存在.
I first verified that the control socket really doesn't exist. My path was "/home/ethan/.ssh/controlmasters/ethan@a.b.c.d:22" and this didn't exist.
然后我像这样运行 ssh:
I then ran ssh like:
ssh -M -S /home/ethan/.ssh/controlmasters/ethan@<ipaddr>:22 server.example.org
现在,它连接并创建控制套接字.随后,我可以打开另一个 ssh,不需要密码,一切正常.
Now, it connects and also creates the control socket. Subsequently, I could open another ssh and that didn't require password and things worked normally.
这篇关于ssh - 控制套接字不存在 - 操作超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!