Mount a remote folder with sshfs

sshfs tunnels the SFTP protocol through an existing SSH connection, so remote files appear as a local directory editable with any program.

LinuxsshsshfsmountLow risk
Run `mkdir -p /mnt/remote && sshfs user@server:/home/user /mnt/remote`; disconnect with `fusermount -u /mnt/remote`.

01Command

Command
$ sshfs user@server:/home/user /mnt/remote

02What it does

Unlike scp or rsync, sshfs gives continuous access — edit remote config files in your local editor, list logs with grep, copy with cp. It needs no server-side setup beyond SSH itself and runs entirely as your user (FUSE), without root. Add `-o reconnect,ServerAliveInterval=15` to survive flaky connections.

03Risk

RiskLow risk
Requirementssshfs + fuse3 packages; SSH access to the remote host
!Warning: Performance over slow links is much worse than local disk — large builds or git operations on an sshfs mount will crawl. It is best for browsing and editing, not as a working directory for heavy I/O.

04Undo

Undo
$ fusermount -u /mnt/remote

05Sources

Last verified: 2026-09-18 · Category: Files & Folders