paulgorman.org/technical

sshfs

Thu 16 Jul 2020 08:38:16 PM EDT

sshfs can mount an SSH server like a local filesystem. In some scenarios, sshfs can be as fast as NFS.

🐚 $ sudo apt install sshfs
🐚 $ mkdir ~/mnt/myserver
🐚 $ sshfs sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 \
     myserver.example.com:/home/paulgorman ~/mnt/myserver

Unmount:

🐚 $ fusermount -u ~/mnt/nanook/

The mount is messed up. How can we force an unmount? Kill sshfs, then umount.

🐚 $ killall -9 sshfs
🐚 $ fusermount -u ~/mnt/nanook/