Quantcast
Viewing all articles
Browse latest Browse all 55

Mount a folder via sshfs in Ubuntu with permissions to other users

After installing sshfs in Ubuntu:

sudo apt-get install sshfs

You can mount a folder located in a remote machine via SSH with a command like this:

sudo sshfs user@remote_server:/remote_folder /local_folder

Image may be NSFW.
Clik here to view.
ssh_tunnel

The problem here is that only the root user is going to be able to enter in /local_folder. This is fixed with the allow_other option:

sudo sshfs -o allow_other user@remote_server:/remote_folder /local_folder

Viewing all articles
Browse latest Browse all 55

Trending Articles