Gregg's MOTD

Tips & Tricks that I've Encountered Over the Years...

Mounting a Remote Drive using FUSE

August 31, 2023 — Gregg Szumowski

If you have FUSE (Filessystem in Userspace) installed, you can use SSH to mount a remote drive locally. This is very simple to do and you don’t need to be root. You just need SSH access to the remote system. Just create a directory to mount the system and use the sshfs command to connect the remote to it.

Here I will mount my home directory on my remote server named slacker locally to a directory on my laptop’s home directory:

$ cd ~
$ mkdir slacker
$ sshfs user@192.168.1.99:/home/user/ slacker
$ cd slacker/
$ ls
Backups       KVM       Public       bin       iso           public_html
Calibre\ Library  Music     PycharmProjects  cv_debug.log  logs          tmp
Desktop       OneDrive  README.txt       file.txt      lynis-report.dat
Documents     Pictures  Templates        fortune.txt   lynis.log
Downloads     Podcasts  Videos       go        pCloudDrive

The above is a listing of my home directory on the remote.

Tags: cli, fuse, sshfs, motd