SSHFS
SSHFS (SSH Filesystem)
allows you to mount remote directories over SSH, enabling secure access to files as if they were local.
It’s ideal for remote file management, backups, and development, providing encrypted, seamless integration between systems.
Basic Usage
Ubuntu/Debian: sudo apt install sshfs
This command installs SSHFS on your system.
SSHFS (SSH Filesystem) allows you to mount a remote filesystem over SSH,
making it accessible as if it were a local filesystem.
Below are examples of how to use SSHFS to mount a remote directory on your local machine.
mkdir ~/remote_mount
Creates a local directory to mount the remote filesystem.
sshfs username@remote_host:/remote/directory ~/remote_mount
Mounts the remote directory to a local mount point over SSH.
Unmounting the Filesystem
fusermount -u ~/remote_mount
Unmounts the SSHFS-mounted directory from the local filesystem.
I personally use this to mount the /web/
directory to my local laptop:
sshfs -o reconnect -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -o IdentityFile=sshfs.key sshfs@sshfs:/web/ /Users/web/