在使用VPS过程中,我们可以用SSHFS把远程目录挂载到本地使用。

安装

sudo apt install sshfs

使用

默认挂载

sshfs user@host:remotedir localdir

根据需要使用参数挂载

-o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa

参考