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