sshfs mount&&umount
sshfs vps@vps.com:/var/www/ -p 2222 /home/kali/mnt/ -o cache=yes,allow_other (-p 2222 是因为vps的ssh端口改为了2222)
--------------------------------------------
--------------------------------------------
fusermount -u /home/kali/mnt/ 取消挂载
---------------------------------------------------------
sshfs [user@]host:[dir] mountpoint [options]
前面和ssh命令一样,mountpoint是挂载点
options重点关注下:
-C 压缩,或者-o compression=yes
-o reconnect 自动重连
-o transform_symlinks 表示转换绝对链接符号为相对链接符号
-o follow_symlinks 沿用服务器上的链接符号
-o cache=yes
-o allow_other 这个参数最重要,必须写,否则任何文件都是Permission Deny