tldr/pages/common/sshfs.md

25 lines
584 B
Markdown
Raw Normal View History

# sshfs
2014-09-11 12:28:06 +01:00
2022-06-27 11:23:12 +01:00
> Filesystem client based on SSH.
> More information: <https://github.com/libfuse/sshfs>.
2014-09-11 12:28:06 +01:00
- Mount remote directory:
2014-09-11 12:28:06 +01:00
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
- Unmount remote directory:
2014-09-11 12:28:06 +01:00
`umount {{mountpoint}}`
2014-09-11 12:28:06 +01:00
- Mount remote directory from server with specific port:
2014-09-11 12:28:06 +01:00
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}`
- Use compression:
2014-09-11 12:28:06 +01:00
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C`
- Follow symbolic links:
`sshfs -o follow_symlinks {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`