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