SSHFS

 

 

 

SSHFS(Secure Shell FileSystem),可以让我们通过ssh的SFTP挂载远程的目录至本机

 

使用 -o指定选项,可指定mount的挂载选项

 

  1. -o nonempty 

    可挂载于非空目录

  2. -o reconnect

    reconnect to server

  3. -o allow_other

    allow access to other users

 

 

  1. 手动挂载
    sshfs -o nonempty,reconnect,allow_other,rw,nosuid,nodev,exec root@radical:/etc /mnt




  2. 开机自动挂载
    root@radical:/root /mnt fuse.sshfs nonempty,reconnect,allow_other,_netdev,rw,nosuid,nodev,exec,IdentityFile=~/.ssh/id_rsa 0 0

     

posted @ 2021-01-07 18:52  ascertain  阅读(501)  评论(0编辑  收藏  举报