Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sshfs, linux - how to mount with read-only access [closed]

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 [email protected]:/home/user /media/mountpoint/ -o allow_other

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

like image 682
quardas Avatar asked Mar 06 '16 18:03

quardas


1 Answers

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

like image 199
sotona Avatar answered Nov 07 '22 11:11

sotona