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