1. 安装sshfs
sudo apt install sshfs
2. 创建挂载点文件夹
mkdir /mnt/NetDisk
3. 配置sshfs
sudo vim /etc/fuse.conf
解除注释user_allow_other
4. 挂载目标目录到挂载点
sshfs -o cache=yes,allow_other wangq@172.16.2.101:/home/wangq/Workfile/ /mnt/NetDisk/
1. 安装sshfs
sudo apt install sshfs
2. 创建挂载点文件夹
mkdir /mnt/NetDisk
3. 配置sshfs
sudo vim /etc/fuse.conf
解除注释user_allow_other
4. 挂载目标目录到挂载点
sshfs -o cache=yes,allow_other wangq@172.16.2.101:/home/wangq/Workfile/ /mnt/NetDisk/