sshfs - transport endpoint is not connected

After using sshfs on and off for years just got this error for the first time and found this page. All the "setup sshd" wasn't much of a help as ssh had been working fine until it suddenly didn't.

However, a bit of testing found the solution. The problem occurred after a failed sshfs mount request with a bad hostname in it. As ls -l $mountpoint failed with this error I tried clearing the trouble with fusermount -u $mountpoint, and it worked!

After the failure I got the error on a simple ls $mountpoint after the failed sshfs.


I had this problem after using sshfs for some time. This answer is relevant only for situations where sshfs was already used successfully prior to the problem.

What usually causes this problem is that you terminated the connection sometime ago, and the system still has the /remote_mount mounted. First try doing:

sudo umount /remote_mount

and then attempt to connect again.

Tags:

Ssh

Sshfs