使用 SSHFS 挂载远程的 Linux 文件系统及目录

1. 安装

sudo apt-get install sshfs

2. 创建 SSHFS 挂载目录

sudo mkdir /mnt/cong

3.使用 SSHFS 挂载远程的文件系统

sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa cong@xxx.xxx.x.xxx:/share1/home/cong /mnt/cong

4. 卸载远程的文件系统

sudo umount /mnt/cong

 

posted @ 2018-03-02 14:00  congyucn  阅读(325)  评论(0编辑  收藏  举报