有關掛載的筆記

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替換

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