Linux下本地主机挂载近程服务器文件系统
本机挂载近程服务器文件系统要用到sshfs服务,如果没有,需装置它:
sudo apt-get install sshfs
挂载分两种:长期与永恒,这里先临时应用长期挂载
长期
0.第一步,批改 /etc/fuse.conf,在 /etc/fuse.conf 内增加user_allow_other
,或者勾销对应的正文。
1.第二步,执行如下
sudo sshfs -o cache=yes,allow_other RemoteName@RometeIP:/home/romete/folder /home/local/sshfs-dir
卸载挂载
sudo umount -v /home/local/sshfs-dir