sshfs

通过 SSH 把远端目录挂载到本地

补充说明

sshfs 基于 SFTP/FUSE,把远端目录映射成本地文件系统。适合临时访问、编辑远端文件,不适合高并发/低延迟要求的场景。

常用示例

sshfs user@host:/remote/path /mnt/remote
sshfs -o reconnect -o ServerAliveInterval=15 user@host:/data /mnt/data
sshfs -o IdentityFile=~/.ssh/id_ed25519 -p 2222 user@host:/data /mnt/data
fusermount -u /mnt/data

易错点与排错