*not* just another blog ;)

Setting up SSHFS

- Posted in Quick Tip by

Today I will be setting up SSHFS, which will allow me to mount a remote folder as a local folder by using SSH.

In this example, I will be creating a folder called remotestorage which will link to a remote folder on a remote server.

First thing we need to do is install SSHFS:

sudo apt update && apt install -y sshfs

Then we need to create the local mount point, just like this:

sudo mkdir /mnt/remotestorage

Now, we can manually mount the remote folder:

sudo sshfs [email protected]:/ /mnt/remotestorage -o allow_other

Log in as requested, and you should be able to see the contents of your remote folder.

If you want to unmount, we just need to do this:

sudo umount /mnt/remotestorage

It's possible to have it automatically mount when the system starts, but it's a bit of a security risk and I wouldn't recommend it.