有关挂载的笔记

sshfs挂载远程linux目录

首先先配置ssh免密码登录

修改

/etc/profile

sshfs [email protected]:/home/xllv /home/user/xllv.2/ -o allow_other

或者修改

/etc/fstab

sshfs#[email protected]:/home/xllv /home/user/xllv.2 fuse defaults,auto,allow_other 0 0

cifs挂载远程windows目录

/etc/fstab

//192.168.1.57/work /mnt/work cifs defaults,auto,iocharset=utf8,rw,uid=1000,gid=1000,username=xllv,password=mypassword  0   0

如果有空格使用\040替换

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章