ssh 不工作,muxserver_listen bind(): 没有那个文件或目录
ssh not working, muxserver_listen bind(): No such file or directory
今天在我的新工作笔记本电脑上我根本无法使用 ssh(ssh 进入服务器、bitbucket 等不工作),它因以下错误而失败:
fatal: Could not read from remote repository. Please make
sure you have the correct access rights and the repository exists.
所以我开始调试,这是 ssh -Tv git@bitbucket.org:
的输出
debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([131.103.20.168]:22).
debug1: setting up multiplex master socket
muxserver_listen bind(): No such file or directory
不知道哪里出了问题,我用了几次 ssh,从来没有遇到过这个问题。顺便说一下,我正在使用 osx。
这个问题已经关闭了,但是在我看来SSH是日常开发中使用的工具,请考虑重新打开它
在尝试了很多不同的东西之后我发现我丢失了这个文件夹 ~/tmp,我在这里检查后意识到了这一点:/private/etc/ssh_config。我找到了这一行:
StrictHostKeyChecking no
ControlMaster auto
ControlPath ~/tmp/ssh-mux-%h-%p-%r #THIS WAS THE PROBLEM
之后:
mkdir ~/tmp
一切恢复正常。
我想回答我自己的问题,因为我花了一些时间才找到这个问题。
今天在我的新工作笔记本电脑上我根本无法使用 ssh(ssh 进入服务器、bitbucket 等不工作),它因以下错误而失败:
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
所以我开始调试,这是 ssh -Tv git@bitbucket.org:
的输出debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([131.103.20.168]:22).
debug1: setting up multiplex master socket
muxserver_listen bind(): No such file or directory
不知道哪里出了问题,我用了几次 ssh,从来没有遇到过这个问题。顺便说一下,我正在使用 osx。
这个问题已经关闭了,但是在我看来SSH是日常开发中使用的工具,请考虑重新打开它
在尝试了很多不同的东西之后我发现我丢失了这个文件夹 ~/tmp,我在这里检查后意识到了这一点:/private/etc/ssh_config。我找到了这一行:
StrictHostKeyChecking no
ControlMaster auto
ControlPath ~/tmp/ssh-mux-%h-%p-%r #THIS WAS THE PROBLEM
之后:
mkdir ~/tmp
一切恢复正常。
我想回答我自己的问题,因为我花了一些时间才找到这个问题。