Skip to content
Follow
Ubuntu Linux Windows 🟡 Intermediate

How to Set up OpenSSH and SSHFS on Ubuntu 26.04

Richard
Written by
Richard
Oct 11, 2026 7 min read
A Linux desktop with a terminal window and a file manager showing a remote folder, illustrating how to set up SSHFS with OpenSSH.
A Linux desktop with a terminal window and a file manager showing a remote folder, illustrating how to set up SSHFS with OpenSSH.

SSHFS (SSH File System) lets you open a folder on a remote Linux machine as if it were on your own PC. It works over an SSH connection, so the files stay on the server while you edit them. On Windows 11, you install WinFsp and SSHFS-Win, then map a network drive to \\sshfs\USERNAME@COMPUTER-NAME in File Explorer . The remote folder then shows up as a normal drive letter.

Advertisement

The server side needs only a working OpenSSH server. Ubuntu 26.04 includes one, so you can set it up with a few terminal commands and no extra software. You can open, edit and save files on the server from Windows the same way you would with files on your own drive.

This page walks through the server setup on Ubuntu 26.04 first, then the Windows steps. Some steps need administrator rights, and those are marked in the list below.

⚡ Quick Answer

Install WinFsp and SSHFS-Win on Windows 11, then select Map network drive in File Explorer and enter \\sshfs\USERNAME@192.0.2.10 as the folder. Enter your remote password, and the Ubuntu home folder appears as a drive letter such as Z:. Your Ubuntu machine must already run a working OpenSSH server.

Advertisement

What you need before you start

Check these three items first. Missing one causes most failed connections.

  • An OpenSSH server running on the remote machine and reachable from your PC (the examples use 192.0.2.10).
  • A user account on that machine (the examples use USERNAME).
  • Administrator rights on your Windows 11 PC. You need them only to install the software.

Test the SSH connection first

📝Good to KnowConfirm that plain SSH works before you add SSHFS.

If SSH fails, the drive mapping fails too.

  1. Right-click Start and select Terminal.
  2. Run this command in Terminal and press Enter: [Restore the SSH command from the original page here]
    💻Code
    ssh USERNAME@192.0.2.10
  3. If Windows asks you to trust the host fingerprint, type yes. Then enter your password. The remote shell prompt appears.
  4. Type exit and press Enter to return to your own session.

Install WinFsp and SSHFS-Win

📝Good to KnowWindows has no built-in SSHFS support, so you need two packages.

WinFsp (Windows File System Proxy) is a helper component that lets ordinary programs create drives. SSHFS-Win is the SSHFS client built on top of it. Install WinFsp first. This step requires administrator privileges.

Advertisement

Install with winget

Use winget (the Windows command-line package manager) to install both packages in a few commands.

  1. Right-click Start and select Terminal (Admin).
  2. Select Yes in the User Account Control prompt.
  3. Install WinFsp:
    💻Code
    winget install WinFsp.WinFsp
  4. Install SSHFS-Win:
    💻Code
    winget install SSHFS-Win.SSHFS-Win
  5. If a source agreement prompt appears, type Y and press Enter.

If a later step does not show the new drive option, restart your PC. A restart is not always needed, but it clears up driver registration problems.

Install from the project installers instead

If winget is unavailable, download the WinFsp installer and the SSHFS-Win installer from their official project pages on GitHub. Run the WinFsp installer first, then the SSHFS-Win installer. Pick the 64-bit installer, which is the right choice for most Windows 11 PCs.

Map the remote folder in File Explorer

This method gives you a drive letter under This PC. It does not need administrator rights.

Advertisement
  1. Press Win + E to open File Explorer.
  2. Select This PC in the left pane.
  3. Select the See more button (three dots) in the toolbar, then select Map network drive.
  4. Choose a letter in the Drive list, such as Z:.
  5. Type the address into the Folder box:
    💻Code
    \\sshfs\USERNAME@192.0.2.10
  6. Select Finish.
  7. Enter your remote account password when prompted. Windows opens the new drive and shows your home folder on the remote machine.

To make the drive return after every restart, select Reconnect at sign-in in the same window before you select Finish.

Choose which remote folder you land in

The address format decides where the drive starts. SSHFS-Win uses a few prefixes.

  • \\sshfs\USERNAME@192.0.2.10 opens the user's home folder.
  • \\sshfs\USERNAME@192.0.2.10\projects opens the projects folder inside the home folder.
  • \\sshfs.r\USERNAME@192.0.2.10\var\www uses the .r prefix to start at the server's root, so it opens /var/www.

Connect to a non-standard SSH port

If the server does not listen on port 22 (the network door SSH normally uses), add the port after the host name with an exclamation mark. For port 2222, use this address:

💻Code
\\sshfs\USERNAME@192.0.2.10!2222

Map the drive from the command line

Use net use to script the mapping or skip the wizard.

Advertisement
  1. Open Terminal. Administrator rights are not needed.
  2. Run the mapping command:
    💻Code
    net use Z: \\sshfs\USERNAME@192.0.2.10
  3. Enter your password if asked. The command reports that it completed successfully, and Z: appears in File Explorer.

Sign in with an SSH key instead of a password

Key-based sign-in removes the password prompts and is safer than a typed password. SSHFS-Win offers the .k prefix, which uses the key stored in your Windows user profile's .ssh folder.

  1. Open Terminal and create a key pair:
    💻Code
    ssh-keygen
  2. Press Enter to accept the default file location. Then set a passphrase or leave it empty.
  3. Copy the public key to the server. Windows has no ssh-copy-id command, so use this PowerShell command:
    💻Code
    type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh USERNAME@192.0.2.10 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
  4. Map the drive with the key prefix:
    💻Code
    net use Z: \\sshfs.k\USERNAME@192.0.2.10

Keep your private key file private, because anyone who has it can sign in as you. If SSHFS-Win does not pick up a key created as id_ed25519, run ssh-keygen -t rsa -b 4096 to create an RSA key. Then repeat the steps with the matching .pub file name.

Disconnect the drive

Disconnecting removes the drive letter from your PC. The files on the server stay untouched.

  1. Open File Explorer and select This PC.
  2. Right-click the mapped drive.
  3. Select Disconnect.

To disconnect from the command line, run net use Z: /delete instead.

Advertisement

Use SSHFS on the Linux side

On an Ubuntu machine, the SSHFS client is a regular package. Install it and mount a remote folder with these steps.

  1. Install the client:
    🐧Bash / Shell
    sudo apt install sshfs
  2. Create a mount point (the local folder that shows the remote files):
    💻Code
    mkdir ~/remote
  3. Mount the remote folder:
    💻Code
    sshfs USERNAME@192.0.2.10:/home/USERNAME ~/remote
  4. Unmount it when you finish:
    💻Code
    fusermount3 -u ~/remote

Fix common problems

  • The "Folder" address is not found: WinFsp or SSHFS-Win is missing or did not finish installing. Restart the PC, then check Settings Apps Installed apps for both entries.
  • Access denied or repeated password prompts: Test the user name and password with a plain ssh login first.
  • Connection times out: The server is unreachable, SSH is not running, or a firewall blocks the port. Confirm the address and port.
  • The drive is slow: SSHFS sends every operation over the network, so folders with thousands of small files are the slowest case. Copying one large archive is faster than copying many small files.

What to do next

To remove the setup, disconnect the drive, then uninstall SSHFS-Win and WinFsp from Settings Apps Installed apps If you want drag-and-drop transfers without a mapped drive, try SFTP with a client such as WinSCP, or use scp from Terminal.

How do I configure SSH on an Ubuntu server?

To configure SSH on an Ubuntu server, install the server package with sudo apt install openssh-server, then start it with sudo systemctl enable --now ssh. Change settings in /etc/ssh/sshd_config, such as turning off root login, then run sudo systemctl restart ssh to apply them.

Why is SSH considered a risky port?

SSH itself is not the risk. The default port 22 is a common target, and bots scan it constantly, trying common usernames and passwords. Exposed to the internet, it invites brute-force attacks. Reduce exposure by allowing only key-based logins, disabling password authentication, and limiting access with a firewall such as ufw.

Advertisement

How do I install SSHFS on Ubuntu?

To install SSHFS on Ubuntu, run sudo apt update, then sudo apt install sshfs. Install it on the computer you connect from, not on the server. Once installed, create a folder with mkdir ~/remote, then mount a remote folder with sshfs USERNAME@192.0.2.10:/home/USERNAME ~/remote.

How to check if SSH is enabled in Ubuntu?

Run systemctl is-enabled ssh in a terminal to see whether SSH starts automatically at boot. It prints enabled or disabled. To check whether it is running now, run systemctl status ssh and look for active (running) in the output. Press q to exit.

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

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