I don't understand how this solution worked for everybody who wanted to mount a volume as a read-only directory using sshfs. Everyone suggest using the 'ro' option. I did that, but the files in the mounted volume are still writeable. Why it doesn't work for me?
sshfs -p 2221 -o ro,idmap=user,reconnect,dev,IdentityFile=/home/user/.ssh/volume_key,Ciphers=arcfour myuser@XXXXXX://base-dir/ mountpoint/
The permission of the folder on the remote volume is 777, the permissions of the local folder are 755, the user on my local machine and the remote machine are the same and the user:group on the local folder is myuser:myuser, after mounting it becomes 1027:users. So mounting the folder changes both the permissions and the owners of the folder, no matter if I use 'ro' or not.