sshfs,linux - 如何使用只读访问权限挂载

时间:2016-03-06 18:07:11

标签: linux ubuntu mount sshfs

我需要通过sshfs以只读模式挂载其他服务器。我的操作系统是Linux(Ubuntu)。有可能吗?

我与该连接一起使用的命令是:

sudo sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other

运行后我有写访问权限。我需要只读。请帮忙。

1 个答案:

答案 0 :(得分:6)

再添加一个选项:sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other -o ro。 这应该有所帮助:http://ubuntuforums.org/showthread.php?t=975107