Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've mounted a directory via sshfs:

sshfs <user>@<host>:/var/www <host>/

However, after a few hours, the "something" happens, and I can no longer use the mounted directory. Symptoms are similar to when an nfsmounted server becomes unavailable: ls fails, cd fails, etc.

I've attempted

sshfs -o reconnect <user>@<host>:/var/www <host>/

but that never responded.

Does anyone know how I can either unmount the directory, and remount it, or force sshfs to reconnect to the server?

share|improve this question
up vote 3 down vote accepted

well, unmount-remount is easy enough

fusermount -u ~/mountpoint
sshfs user@host:/dir ~/mountpoint

Done! As a sidenote, do you have ssh keepalive set to no on your server? You might simply be getting timed out.

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.