sshfs

sshfs remote_user@server_ip:/remote_path mount_path -o uid=1000 -o workaround=rename

其中-o uid=1000是將遠程系統上文件的全部者映射爲本地uid用戶,這樣就沒有權限問題了。ubuntu

-o workaround=rename是容許對已有文件的重命名,我習慣的編輯器geany就是用這種方式保存文件的。ssh

 

卸載用掛載的用戶執行編輯器

fusermount -u mount_path

或者用root用戶執行ui

umount mount_path

 在ubuntu16.04上,sshfs掛載的目錄也會顯示在nautilus左側spa

相關文章
相關標籤/搜索