Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Tech News
  • Contact
  • Toggle search form

Mounting remote directory using sshfs

Posted on 13/09/202030/08/2023 IT Expert By IT Expert No Comments on Mounting remote directory using sshfs
  1. Home
  2. Linux
  3. 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.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • 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

  • ERRORFEATURE
    Fix 404 Not Found Repository Errors in Ubuntu/Debian distribution Linux
  • ubuntu 1479782 1280
    Ubuntu Linux post installation of Network Properties, Guest Integration and Web Administration using Cockpit Linux
  • SUID GUID Sticky Bit 1
    Set Special File Permissions with SUID or GUID and Sticky Bit Linux
  • nextcloudfeature 1
    How To Install Nextcloud on a Linux system Backup
  • yarnfinalfeature
    How to Install and Uninstall Yarn on Ubuntu Linux Linux
  • linux windows 10
    Windows Subsystem for Linux: How to install WSL on Windows 10 Linux

More Related Articles

ERRORFEATURE Fix 404 Not Found Repository Errors in Ubuntu/Debian distribution Linux
ubuntu 1479782 1280 Ubuntu Linux post installation of Network Properties, Guest Integration and Web Administration using Cockpit Linux
SUID GUID Sticky Bit 1 Set Special File Permissions with SUID or GUID and Sticky Bit Linux
nextcloudfeature 1 How To Install Nextcloud on a Linux system Backup
yarnfinalfeature How to Install and Uninstall Yarn on Ubuntu Linux Linux
linux windows 10 Windows Subsystem for Linux: How to install WSL on Windows 10 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

Veeam Vanguard

  • Fix error Microsoft Outlook cannot sign or encrypt this message when sending email.
    How to fix error “Microsoft Outlook cannot sign or encrypt this message” when sending email? Network | Monitoring
  • Feature image  Error Code 0xC1900101 – 0x30018
    How to Fix Windows Update Error Code 0xC1900101 – 0x30018 Windows
  • ReasonsforBitLockerRecovery
    Reasons for BitLocker Recovery Prompt: Query the number of BitLocker recovery request Windows
  • 960x0
    How to resolve request timed out when pinging Windows Server
  • Check Hard Drive Health (SMART) in Windows
    How to check Hard Drive Health (SMART) in Windows Windows
  • screenshot 2020 03 14 at 22.47.56
    How to block apps from running in Windows Windows
  • Cannot Start Proctored Exam
    DbxSvc Process: How to Fix “Cannot Start Proctored Exam” Windows
  • ext
    How to install Standalone Installation DriveLock Encryption software Security | Vulnerability Scans and Assessment

Subscribe to Blog via Email

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

Join 1,768 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 Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.