2016-09-22 08:03:38 +01:00
|
|
|
# sshfs
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Filesystem client based on ssh.
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://github.com/libfuse/sshfs>.
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-16 15:12:05 +01:00
|
|
|
- Mount remote directory:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
|
|
|
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
|
|
|
|
|
2016-01-16 15:12:05 +01:00
|
|
|
- Unmount remote directory:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2018-07-29 17:53:47 +02:00
|
|
|
`umount {{mountpoint}}`
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-16 15:12:05 +01:00
|
|
|
- Mount remote directory from server with specific port:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
|
|
|
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -p {{2222}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Use compression:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
|
|
|
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C`
|
2018-07-09 15:23:01 -07:00
|
|
|
|
|
|
|
- Follow symbolic links:
|
|
|
|
|
|
|
|
`sshfs -o follow_symlinks {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
|