lloiacono lloiacono - 1 year ago 398
Git Question

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

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 git@bitbucket.org:

debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([]: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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download