1. 安装
sudo apt-get install sshfs
2. 创建 SSHFS 挂载目录
sudo mkdir /mnt/cong
3.使用 SSHFS 挂载远程的文件系统
sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa [email protected]:/share1/home/cong /mnt/cong
4. 卸载远程的文件系统
sudo umount /mnt/cong
sudo apt-get install sshfs
sudo mkdir /mnt/cong
sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa [email protected]:/share1/home/cong /mnt/cong
sudo umount /mnt/cong