Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ssh not working, muxserver_listen bind(): No such file or directory [closed]

Today on my new work laptop I'm not able to use ssh at all (ssh into server, bitbucket, etc not working), it failed with the following error:

fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

So I started debugging and this is the output for ssh -Tv [email protected]:

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

No idea what is wrong, I used ssh several times and never had this issue. I'm using osx by the way.

This question was closed as of topic, but in my opinion SSH is a tool used in everyday developing, please consider re opening it

like image 398
lloiacono Avatar asked Aug 03 '15 13:08

lloiacono


1 Answers

After trying a lot of different things I found that I was missing this folder ~/tmp, I realized of this after checking here: /private/etc/ssh_config. I found this line:

StrictHostKeyChecking no
    ControlMaster auto
    ControlPath ~/tmp/ssh-mux-%h-%p-%r #THIS WAS THE PROBLEM

So after:

mkdir ~/tmp 

everything works again.

I thought of answering my own question since it took me some time to find this.

like image 154
lloiacono Avatar answered Oct 13 '22 21:10

lloiacono