Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » Mounting remote directory using sshfs
  • feature functionapp
    Deploy a function app from Visual Studio to Azure Platform AWS/Azure/OpenShift
  • Object First Honeypot OOTBI
    OOTBI Security Best Practices: Enable Honeypot on Object First Backup
  • Azure Stack 1
    How to create a load balancer for Azure Stack Hub Network | Monitoring
  • systemd services
    How to use Systemd Timers on Linux Linux
  • Protech Synology NAS
    Cybersecurity Tips to Secure Synology NAS against Ransomware Reviews
  • Screenshot 2020 05 16 at 17.13.18
    What is Jira re-indexing and why you should perform it JIRA|Confluence|Apps
  • Windowsfilesystemxx
    Failed to remove network for the build, Job failed error: Invalid volume specification: “/cache” Containers
  • Container insights
    How to use Container Insights for Azure Kubernetes Workload Network | Monitoring

Mounting remote directory using sshfs

Posted on 13/09/202030/08/2023 Christian By Christian No Comments on Mounting remote directory using sshfs
SSHFS

SSHF provides a secure way to access remote machines on the fly via the Secure Shell File Transfer Protocol (SFTP). It stands for Secure Shell File System and it is a software developed for use on Linux distributions.

HOW TO USE SSHFS


1: Download and install the fuse-sshfs package

Furthermore, The SSHFS package is not included in any of the repositories on the Linux Operating System. You will have to download the rpm package for fuse-sshfs to your machine or you can use the yum command if you have access to an online repository.

After downloading the rpm package, go to the terminal of the local machine, migrate to the directory that has the downloaded package and then use the rpm command to install the rpm package for the sshfs

Remote directory mounting
For the purpose of this demonstration I have created a directory “test” in the remote machine
File system
In that directory is a text file “testfile” that says “This is a test file to demonstrate SSHFS

2: Create a mount point on the local machine
– On the machine where the SSHFS is installed, log in as root and create a mount point. I am going to call mine server22 and an ll command on that directory should show it is empty.

SSH-based file access

3: Mount the remote directory on the local machine
– Now mount the remote directory with the syntax

sshfs remote-machine-name@ip-address:directory-path /mount-point

It should ask you for the password of the remote machine when you hit the enter button. Input the required password.

Now migrate to the mount point/directory, and do the “ll” command; if all is well, you should see the files in the mounted directory of the remote machine.

Most servers already support this protocol it is very easy to set up. On the client-side mounting, the file-system is as easy. We don’t have to do much configuration on the server-side. All you need is the remote server should have a working SSH server.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:SSH

Post navigation

Previous Post: How to export and import Windows Start layout
Next Post: Error 740: Elevated permissions are required to run DISM

Related Posts

  • prometheus feature image
    How to use Prometheus for Monitoring Linux
  • feature photo quit vim
    How to Exit Linux Vim or Vi Editor Linux
  • Screenshot 2022 03 21 at 18.06.30
    How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
  • Webp.net resizeimage 1
    Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines AWS/Azure/OpenShift
  • Screenshot 2022 04 13 at 21.38.35
    Check Weather Conditions via Command Line on Windows, macOS, Linux and Web Linux
  • fba7f screenshot 2019 04 15 at 18.33.30
    File System Overview: How to decide on the right File System to use for your USB Linux

More Related Articles

prometheus feature image How to use Prometheus for Monitoring Linux
feature photo quit vim How to Exit Linux Vim or Vi Editor Linux
Screenshot 2022 03 21 at 18.06.30 How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
Webp.net resizeimage 1 Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines AWS/Azure/OpenShift
Screenshot 2022 04 13 at 21.38.35 Check Weather Conditions via Command Line on Windows, macOS, Linux and Web Linux
fba7f screenshot 2019 04 15 at 18.33.30 File System Overview: How to decide on the right File System to use for your USB Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • feature functionapp
    Deploy a function app from Visual Studio to Azure Platform AWS/Azure/OpenShift
  • Object First Honeypot OOTBI
    OOTBI Security Best Practices: Enable Honeypot on Object First Backup
  • Azure Stack 1
    How to create a load balancer for Azure Stack Hub Network | Monitoring
  • systemd services
    How to use Systemd Timers on Linux Linux
  • Protech Synology NAS
    Cybersecurity Tips to Secure Synology NAS against Ransomware Reviews
  • Screenshot 2020 05 16 at 17.13.18
    What is Jira re-indexing and why you should perform it JIRA|Confluence|Apps
  • Windowsfilesystemxx
    Failed to remove network for the build, Job failed error: Invalid volume specification: “/cache” Containers
  • Container insights
    How to use Container Insights for Azure Kubernetes Workload Network | Monitoring

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.