Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Until this morning, I'd been using sshfs quite nicely to mount a directory from a linux machine in my office. Today, it stopped. Here's my sshfs command:

sshfs -osshfs_sync,volname=linux-builder3 linux-builder3:/home/cnorum /Users/carl/linux-builder3

I get this error, but the sshfs process seems to still be running (that is, it just sits there, never returning to the shell prompt):

mount_osxfusefs: failed to mount /Users/carl/linux-builder3@/dev/osxfuse1: Socket is not connected

The system log on the Mac has these messages:

2/20/13 12:57:27.476 PM KernelEventAgent[43]: tid 00000000 received event(s) VQ_DEAD (32)
2/20/13 12:57:27.000 PM kernel[0]: OSXFUSE: force ejecting (no response from user space 5)
2/20/13 12:57:27.000 PM kernel[0]: OSXFUSE: user-space initialization failed (57)

And here's /var/log/auth.log on the linux machine:

Feb 20 12:56:28 linux-builder3 adclient[1599]: INFO  <fd:22 PAMIsUserAllowedAccess> audit User 'cnorum' is authorized
Feb 20 12:56:28 linux-builder3 sshd[29648]: Accepted publickey for cnorum from port 49850 ssh2
Feb 20 12:56:28 linux-builder3 sshd[29648]: pam_unix(sshd:session): session opened for user cnorum by (uid=0)
Feb 20 12:56:28 linux-builder3 sshd[29729]: subsystem request for sftp

sshfs connections to other machines (linux-builder and linux-builder2 in my case) seem to be fine. Does anybody have any suggestions for what went wrong and how I might fix it? I can get any logs you might want to see!

share|improve this question

3 Answers 3

For future googlers, I received this mysterious error and realized the path I was providing to sshfs was non-existent. Oops. Fixed it and I'm off.

mount_osxfusefs: failed to mount /Volumes/mypath@/dev/osxfuse0: Socket is not connected
share|improve this answer
This was very similar to my problem - I had a typo in the host address! Thanks! –  IanW Apr 1 at 0:12
in the same vein, I thought I could use my .ssh/config host synonyms in /etc/fstab definitions and without specifying an IdentifyFile=~/.ssh/id_rsa. Suffice it to say I was sorely mistaken! For the googlers I got (at least) a terse message in my syslog: OSXFUSE: user-space initialization failed (57) –  lol Apr 25 at 3:55
Note: ~/ on a mac is /Users/username/ but the linux computer probably has /home/username/. Once I changed sshfs server:~/ ~/mnt_fldr/ to sshfs server:/home/username/ /Users/username/mnt_fldr/ it worked. –  David Oneill Jul 24 at 15:59
up vote 2 down vote accepted

I think it's fixed. I had this line in the .bashrc on the linux box:

CLIENT_PATH_PREFIX="$(ssh ${CLIENT_ADDR} 'echo ${SSHFS_PATH_PREFIX}')/$(hostname)/$(whoami)"

It didn't need to be run by non-interactive shells, so I pushed that off to a different file, and it's better now. I don't really understand why, but I'm happy it works.

share|improve this answer

My problem was that the RSA host key for my host changed, so I had to run

ssh-keygen -R site.com
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.