First install the module:
sudo apt-get install sshfs
Load it to kernel
sudo modprobe fuse
Setting permissions
sudo adduser $USER fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /dev/fusermount
Now we’ll create a directory to mount the remote folder in.
I chose to create it in my home directory and call it remoteDir.
mkdir ~/remoteDir
Now I ran the command to mount it(mount on home).
sshfs maythux@192.168.xx.xx:/home/maythuxServ/Mounted ~/remoteDir
Now it should be mounted
cd ~/remoteDir
ls -l
Enjoy
from: https://askubuntu.com/questions/412477/mount-remote-directory-using-ssh
本文介绍如何使用SSHFS挂载远程目录到本地。首先安装SSHFS模块并配置权限,然后创建本地挂载点目录,最后通过SSHFS命令完成远程目录的挂载。
934

被折叠的 条评论
为什么被折叠?



