第一步:
sudo apt-get install fuse-utils libfuse2 ssh
ssh-keygen
第二步:
sudo apt-get install sshfs
第三步,设置远程目录到本地文件系统:
sshfs 用户名@远程服务器名:远程目录 映射至本地的目录,如:
sshfs root@10.55.32.22:/home /home/remoteserver
若要卸载,可采用以下方法:
fusermount -u mountpoint
或者:
fusermount -u /home/remoteserver
也可以使用通常的umount命令来卸载文件系统分区:
umount /home/remoteserver