I have a basic server set-up using a RaspberryPI, Ubuntu server 20.04, and Nginx. Using ssh, I can edit the files directly in the terminal, but that becomes sloppy, so I am looking for a more elegant way. Therefore - SSHFS.
Actions:
- Mounting the remote volume /var/www/html to a local folder ~/Work/Server.
- Opening my text editor and trying to modify and save a file.
Problem:
- I receive the error Unable to save file: Permission denied
Trying to solve:
- used
sshfs -o allow_other
- Same result - user
sshfs -o allow_other,default_permissions
- Same result
Solution: ???
The volume mounts with no errors, I can open and view the files. The group owner of the remote /var/www is www-data, and the user I am connecting as is part of this group.
What am I missing and how can I make this configuration to actually work?