Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
The Server Admin
The Server Admin
  • Home
  • Linux
  • Windows
  • About
  • What Powers The Server Admin
  • Home
  • Linux
  • Windows
  • About
  • What Powers The Server Admin
Close

Search

  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
Subscribe
Linux

Mount sFTP folder as local drive

By Anthony
June 9, 2026 2 Min Read
Comments Off on Mount sFTP folder as local drive

As we grow, remote storage is something that we adventually get for ourselves or we get for work. You do have backups right?

We are going to work in Linux, Ubuntu* as I already wrote an actical for with Windows version. Now we focus on Ubuntu Linux. This example wil work with pretty much any distro you will just have to change how the software is installed. So lets begin.

To mount an sFTP directory or folder as a local drive. We only need to run a few commands.

First we need to install SSHFS

sudo apt update && sudo apt install sshfs -y

Now lets create that local mount point .

mkdir ~/remotedir

Lets mount the sFTP drive.

sshfs username@remote_host:/path/to/remote/dir ~/remotedir

Adjust your information as needed.

If you don’t have an sFTP account, I highly recommend Interserver.net Their plans start as low as $2/month.

After we run said above command, you will be prompted for the password. ** You can forget this step if you already have your SSH key installed on your remote backup.

Here we go.

You now have a remote sFTP directory now mapped to a local directory. Which now will allow you to have backups running all the time.

** You can mount any drive to any location. If you want to map 5 drives you can, example Documents, Photos, Videos, Music, Downloads. Or you can mount one drive as /backups and run some simple cronjob to run your script to backup your pc.

Don’t forget when you mount a remote filesystem as a local directory, there really isn’t backup, meaning you delete the file or folder, it is gone.

This is great for mounting a shared drive, example a shared Documents folder where say your company could have a single drive mapped. You can also create a Software folder.

This was targeted to Linux users, if you run Windows check out this little how to here.

Happy Sharing!

Author

Anthony

Follow Me
Other Articles
Previous

Robocopy Examples

Search

Need a Virtual Server for sysctl testing? Check out our plans!

Popular Posts

  • Mount sFTP folder as local drive
    by Anthony
    June 9, 2026
  • Robocopy Examples
    by Anthony
    February 12, 2026
  • Rsync Command Examples
    by Anthony
    February 10, 2026

Trending

  • Mount sFTP folder as local drive
    by Anthony
    June 9, 2026
  • Adding a GUI to a Server or VPS
    by Anthony
    August 27, 2024
  • Back up to a shared folder with Time Machine on Mac
    by Anthony
    January 4, 2025
  • Backup Your Databases
    by Anthony
    March 24, 2024

Editors Picks

    Send an email:
    mail@example.com

    Call me:
    123-456-7890

    • Facebook
    • Twitter
    • Instagram
    • TikTok
    • LinkedIn
    • Behance
    Copyright 2026 — The Server Admin. All rights reserved. Blogsy WordPress Theme