使用 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
原文地址:https://www.cnblogs.com/congyucn/p/8492888.html