25

After reinstalling the server I can not mount it:

sshfs [email protected]:/var /remote_mount
fuse: bad mount point `/remote_mount': Transport endpoint is not connected

When I SSH, I get an error:

# ssh [email protected]
The authenticity of host 'example.com (xxx.xxx.xxx.xxx)' can't be established.
ECDSA key fingerprint is 57:b6:bd:76:17:80:73:85:4a:14:8a:6f:dc:fa:fe:7c.
Are you sure you want to continue connecting (yes/no)?
Stephen Ostermiller
  • 982
  • 2
  • 11
  • 27
clarkk
  • 1,727
  • 6
  • 31
  • 43

2 Answers2

63

This error popped up for me after I had been using sshfs on and off for years. A search found this page but all the "setup sshd" answers were not much help as sshfs had been working well until it suddenly didn't and ssh worked just fine to other locations.

However, after a bit of frustrating poking and testing I found the solution. The problem started with a sshfs mount failing from a bad hostname in it. As ls -l $mountpoint failed with this error I tried clearing the trouble with fusermount -u $mountpoint, and the mount started to work again!

Even a simple ls $mountpoint made the error after the failed sshfs.

Gilbert
  • 814
  • 6
  • 6
30

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.

countermode
  • 7,373
  • 5
  • 31
  • 58
krsnik93
  • 411
  • 4
  • 3