Files
tldr/pages.zh/common/sshfs.md

24 lines
550 B
Markdown

# sshfs
> 基于SSH的文件系统客户端。
> 更多信息:<https://github.com/libfuse/sshfs>。
- 挂载远程目录:
`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} {{挂载点}}`
- 卸载远程目录:
`umount {{挂载点}}`
- 从特定端口挂载远程目录:
`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} -p {{2222}}`
- 使用压缩:
`sshfs {{用户名}}@{{远程主机}}:{{远程目录}} -C`
- 跟随符号链接:
`sshfs -o follow_symlinks {{用户名}}@{{远程主机}}:{{远程目录}} {{挂载点}}`