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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.