sshfs,Linux-如何通过只读访问进行挂载 [英] sshfs, linux - how to mount with read-only access

查看:47
本文介绍了sshfs,Linux-如何通过只读访问进行挂载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I need to mount other server via sshfs with read-only mode. My OS is Linux (Ubuntu). Is it possible to do that?

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

My command used with that connection is:

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

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

After running that I have write-access. I need to have read-only. Please help.

推荐答案

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

just add one more option: sshfs user@123.123.123.123:/home/user /media/mountpoint/ -o allow_other -o ro . this should help: http://ubuntuforums.org/showthread.php?t=975107

这篇关于sshfs,Linux-如何通过只读访问进行挂载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆