2016-09-22 10:03:38 +03:00
|
|
|
# sshfs
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Filesystem client based on ssh.
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-16 17:12:05 +03:00
|
|
|
- Mount remote directory:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
|
|
|
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
|
|
|
|
|
2016-01-16 17:12:05 +03:00
|
|
|
- Unmount remote directory:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2018-07-29 18:53:47 +03:00
|
|
|
`umount {{mountpoint}}`
|
2014-09-11 15:28:06 +04:00
|
|
|
|
2016-01-16 17:12:05 +03: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 20:31:27 +03:00
|
|
|
- Use compression:
|
2014-09-11 15:28:06 +04:00
|
|
|
|
|
|
|
`sshfs {{username}}@{{remote_host}}:{{remote_directory}} -C`
|
2018-07-10 01:23:01 +03:00
|
|
|
|
|
|
|
- Follow symbolic links:
|
|
|
|
|
|
|
|
`sshfs -o follow_symlinks {{username}}@{{remote_host}}:{{remote_directory}} {{mountpoint}}`
|