Ubuntu上多台服务器相互挂载文件夹
2018-12-07 19:44 JohnRain 阅读(832) 评论(0) 编辑 收藏 举报工具安装
$ sudo apt-get install sshfs
挂载目录
JohnRain@server1:~$ sshfs -o gid=1012,uid=1012 JohnRain@server2:/home/JohnRain/mycode /home/JohnRain/S2code/
卸载目录
fusermount -u /home/JohnRain/S2code/
备注
- 用户组id(gid)和用户id(uid)可以在
/etc/passwd
文件中查到