SSHFS lets you access a remote directory through a local mount point using SFTP over SSH. This guide creates a manual mount as a regular Linux user and explains how to unmount it afterwards.
Check the requirements
You need SSHFS and FUSE support locally, plus authorised SFTP access to the remote directory. Test the SSH connection and verify the server’s host key before mounting.
The remote user can access only files permitted by that account. A mount is live access to remote data, not an independent backup copy.
Install SSHFS
On a supported Debian or Ubuntu release:
sudo apt update
sudo apt install sshfsOn Fedora, check the distribution’s fuse-sshfs package. Other RPM-based distributions may require an explicitly supported additional repository; do not assume that every release provides a package named sshfs.
Create and mount the directory
As the local user who will access the files:
mkdir -p ~/remote-files
sshfs [email protected]:/remote/directory ~/remote-filesReplace the user, host and remote path with the actual details. Use an empty local mount point so existing contents are not hidden while mounted.
For a non-default SSH port:
sshfs -p 2222 [email protected]:/remote/directory ~/remote-filesVerify the displayed contents before making changes; edits and deletions affect the remote directory.
Unmount the directory
Close applications using the mount, then run:
fusermount3 -u ~/remote-filesOn a FUSE 2 installation, use fusermount -u instead. Resolve open-file or connection problems if unmounting fails.
A persistent boot-time mount needs a separately planned configuration for credentials, network availability and failure handling. Do not put a shell sshfs command directly into /etc/fstab or reboot merely to test a manual mount.