Skip to content

Pratama Digital

Your Digital Partner

Menu
  • Home
  • Download Area
  • Pratama Digital Net
  • Internet Speed Test
  • About Us
Menu

Mount SFTP as a Local Storage on Ubuntu

Posted on January 16, 2024

To mount a remote SFTP (SSH File Transfer Protocol) directory to a local Ubuntu system, you can use the sshfs command. This allows you to access and interact with the remote files as if they were local. Here are the steps:

1. Install sshfs:

Ensure that sshfs is installed on your local Ubuntu system. You can install it using the following command:

sudo apt-get update
sudo apt-get install sshfs

2. Create a Mount Point:

Choose or create a local directory where you want to mount the remote SFTP file system. For example, you can create a directory named “remote_mount” in your home directory:

mkdir ~/remote_mount

3. Mount the Remote SFTP Directory:

Use the sshfs command to mount the remote directory. Replace <username>, <hostname>, and <remote_directory> with your SFTP credentials and the path to the remote directory:

sshfs <username>@<hostname>:/path/to/remote/directory ~/remote_mount

 

Example:

sshfs john@example.com:/home/john/data ~/remote_mount

4. Access the Mounted Directory:

After running the sshfs command, you can access the remote files in the local remote_mount directory. The files in this directory are essentially the files on the remote SFTP server.

5. Unmount the Remote Directory:

When you’re done, you can unmount the remote directory using the following command:

fusermount -u ~/remote_mount

This will unmount the remote SFTP directory, and you can remove the local mount point if you no longer need it.

Keep in mind that sshfs requires SSH access to the remote server, and you should have proper authentication configured (password or key-based authentication). Additionally, ensure that the SSH server on the remote system allows SFTP access.

Share this:

  • Facebook
  • X

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 10 Powerful Alternatives to MikroTik for Small to Enterprise Networks
  • LDAP: A Guide for Linux System Administrators
  • Virtual Private Server (VPS): A Guide for Beginners
  • Forward Ports on Your Router for Online Games
  • MikroTik RouterOS 6 vs. RouterOS 7: Key Differences, Advantages, and Disadvantages

Tags

24h clock adobe adobe cc adobe cs master almalinux arduino autodesk basic ip address cad software calculator php connect java dns server download photoshop ecmp formula ipv4 innodb install iptables ipsec iptables java mysql linux firewall linux mint linux security load balance microsoft office myisam mysql mysql engine node.js nodejs nth office alternative openvpn pcc php port game online port mikrotik postgresql postgresql to mysql public dns rocky linux running text script php ubuntu LTS wireguard

Categories

  • Advertising
  • CAD software
  • Computer Component
  • Control Panel
  • Database
  • DNS
  • Download
  • File Server
  • Firewall
  • Graphic Design
  • Internet
  • IP Address
  • Linux OS
  • Load Balance
  • Mikrotik
  • Movie
  • Novel/Book
  • Office
  • OpenWRT
  • Processor & GPU
  • Programming
  • Routing
  • Security
  • Server
  • Tutorial
  • Video Editing
  • VPN
  • Web Programming
  • Windows OS
  • Wordpress

About Us

We are a company specializing in network configuration, MikroTik and computer installation services, as well as wifi setup. With experience dating back to 2017, we have gained the trust of numerous clients from various regions who rely on our services. Our expertise extends to catering to personal, office, institutional, and industrial needs.

Archives

  • December 2024
  • September 2024
  • June 2024
  • May 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023

Recent Posts

  • 10 Powerful Alternatives to MikroTik for Small to Enterprise Networks
  • LDAP: A Guide for Linux System Administrators
  • Virtual Private Server (VPS): A Guide for Beginners
  • Forward Ports on Your Router for Online Games
  • MikroTik RouterOS 6 vs. RouterOS 7: Key Differences, Advantages, and Disadvantages
©2025 Pratama Digital | Design: Newspaperly WordPress Theme