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.
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/remote02What 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
!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/remote05Sources
- SSHFS — SSH FilesystemEvidence: usage examples: sshfs user@host:/path mountpoint; unmount with fusermount -u
- sshfs(1) — mount directory over sshEvidence: documents reconnect, idmap and IdentityFile options
Last verified: 2026-09-18 · Category: Files & Folders