1. 安装
sudo apt-get installsshfs
2. 创建SSHFS 挂载目录
sudo mkdir/mnt/siyuan
3.使用SSHFS 挂载远程的文件系统
sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa #username@site:/share1/home/siyuan /mnt/siyuan
sshfs -C -o reconnect #username@site:/share1/home/siyuan ~/mnt/siyuan
4. 卸载远程的文件系统
sudo umount/mnt/siyuan
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!