Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sshfs-win

> 编程语言
Open source

SSHFS For Windows

6.3K stars0 likes1 views
WebsiteGitHub

About

SSHFS For Windows

<br/>
<br/>
SSHFS-Win &middot; SSHFS for Windows

Download

</a>
<a href="https://github.com/billziss-gh/sshfs-win/releases">
    
</a>

GUI Frontends

</a>
<a href="https://github.com/evsar3/sshfs-win-manager/releases/latest">
    
</a>
<a href="https://github.com/gregorkrebs/neosshwinmanager/releases/latest">
    
</a>

SSHFS-Win is a minimal port of SSHFS to Windows. Under the hood it uses Cygwin for the POSIX environment and WinFsp for the FUSE functionality.

Installation

  • Install the latest version of WinFsp.
  • Install the latest version of SSHFS-Win. Choose the x64 or x86 installer according to your computer's architecture.

Both can also be easily installed with WinGet:

bash
winget install SSHFS-Win.SSHFS-Win

Basic Usage

Once you have installed WinFsp and SSHFS-Win you can map a network drive to a directory on an SSHFS host using Windows Explorer or the net use command.

Windows Explorer

In Windows Explorer select This PC > Map Network Drive and enter the desired drive letter and SSHFS path using the following UNC syntax:

\\sshfs\REMUSER@HOST[\PATH]

The first time you map a particular SSHFS path you will be prompted for the SSHFS username and password. You may choose to save these credentials with the Windows Credential Manager in which case you will not be prompted again.

In order to unmap the drive, right-click on the drive icon in Windows Explorer and select Disconnect.

Command Line

You can map a network drive from the command line using the net use command:

> net use X: \\sshfs\[email protected]
The password is invalid for \\sshfs\[email protected].

Enter the user name for 'sshfs': billziss
Enter the password for sshfs:
The command completed successfully.

You can list your net use drives:

$ net use
New connections will be remembered.

Status       Local     Remote                    Network

-------------------------------------------------------------------------------
             X:        \\sshfs\[email protected]
                                                WinFsp.Np
The command completed successfully.

Finally you can unmap the drive as follows:

$ net use X: /delete
X: was deleted successfully.

UNC Syntax

The complete UNC syntax is as follows:

\\sshfs\[LOCUSER=]REMUSER@HOST[!PORT][\PATH]
\\sshfs.r\[LOCUSER=]REMUSER@HOST[!PORT][\PATH]
\\sshfs.k\[LOCUSER=]REMUSER@HOST[!PORT][\PATH]
\\sshfs.kr\[LOCUSER=]REMUSER@HOST[!PORT][\PATH]
  • REMUSER is the remote user (i.e. the user on the SSHFS host whose credentials are being used for access).
  • HOST is the SSHFS host.
  • PORT is the remote port on the SSHFS host (optional; default is 22).
  • PATH is the remote path. This is interpreted as follows:
    • The sshfs prefix maps to HOST:~REMUSER/PATH on the SSHFS host (i.e. relative to REMUSER's home directory).
    • The sshfs.r prefix maps to HOST:/PATH on the SSHFS host (i.e. relative to the HOST's root directory).
    • The sshfs.k prefix maps to HOST:~REMUSER/PATH and uses the ssh key in %USERPROFILE%/.ssh/id_rsa (where %USERPROFILE% is the home directory of the local Windows user). To specify a different specific key, define an alias of the HOST with the specific private ssh key you want to use in the ssh config. BEWARE: only keys without a pass phrase are supported.
    • The sshfs.kr prefix maps to HOST:/PATH and uses the ssh key in %USERPROFILE%/.ssh/id_rsa. To specify a different specific key, define an alias of the HOST with the specific private ssh key you want to use in the ssh config. BEWARE: only keys without a pass phrase are supported.
  • LOCUSER is the local Windows user (optional; USERNAME or DOMAIN+USERNAME format).
    • Please note that this functionality is rarely necessary with latest versions of WinFsp.

GUI front ends

There are currently 3 GUI front ends for SSHFS-Win: SiriKali, SSHFS-Win-Manager and NEO SSH-Win Manager.

SiriKali

SiriKali is a GUI front end for SSHFS-Win (and other file systems). Instructions on setting up SiriKali for SSHFS-Win can be found at this link. Please report problems with SiriKali in its issues page.

SiriKali supports:

  • Password authentication.
  • Public key authentication.
  • Key Agents and KeePass 2.

SSHFS-Win-Manager

SSHFS-Win-Manager is a new GUI front end specifically for SSHFS-Win with a user-friendly and intuitive interface. SSHFS-Win-Manager integrates well with Windows and can be closed to the system tray. Please report problems with SSHFS-Win-Manager in its issues page.

SSHFS-Win-Manager supports:

  • Password authentication.
  • Public key authentication.

NEO SSH-Win Manager

NEO SSH-Win Manager is a modern GUI front end for SSHFS-Win, built with Python and PyQt6. It mounts remote SSH filesystems as Windows drive letters with one click, integrates with the Windows system tray, offers multi-user accounts with encrypted credential storage, per-user language, a live remote system info panel and a built-in SSH terminal. Please report problems with NEO SSH-Win Manager in its issues page.

NEO SSH-Win Manager supports:

  • Password authentication.
  • Public key authentication.
  • SSH certificate authentication.

Using Jump Hosts

sshfs-win itself does not currently support ssh tunneling, but something similar can be achieved using the built-in openSSH of windows.

  • use openSSH t create a local port forward through the jump host to the target

    ssh -L <origin port of jump connection>:<target of tunnel>:<port of target to target> <adress of tunnel jump host>

    All standard settings of the ssh config may be used in this step.

    Reference example ssh config:

    create the file C:\Users\<UserName>\.ssh\config and/or add the following lines:
    
    Host <jump host alias>
      Hostname <adress of jump host>
      User <user name at jump host>
      IdentityFile <path to private key for login to the jump host, may have a pass phrase>
      IdentitesOnly yes
  • connect to the target server using the following

    \\sshfs\REMUSER@localhost!<origin port of jump connection>

    or similar.

Advanced Usage

It is possible to use the sshfs-win.exe and sshfs.exe programs directly for advanced usage scenarios. Both programs can be found in the bin subdirectory of the SSHFS-Win installation (usually \Program Files\SSHFS-Win\bin).

The sshfs-win.exe program is useful to launch sshfs.exe from a cmd.exe prompt (sshfs-win cmd) or to launch sshfs.exe under the control of the WinFsp Launcher (sshfs-win svc). The sshfs-win.exe program SHOULD NOT be used from Cygwin. The sshfs-win.exe program has the following usage:

…

The sshfs.exe program can be used with an existing Cygwin installation, but it requires prior installation of FUSE for Cygwin on that Cygwin installation. FUSE for Cygwin is included with WinFsp and can be installed on a Cygwin installation by executing the command:

$ sh "$(cat /proc/registry32/HKEY_LOCAL_MACHINE/SOFTWARE/WinFsp/InstallDir | tr -d '\0')"/opt/cygfuse/install.sh
FUSE for Cygwin installed.

Passing options to sshfs for mapped network drives

When using mapped network drives created in Windows Explorer or using "net use", you can't directly pass options to sshfs. You can, however, pass them via a registry patch. When you then map a network drive or use "net use", the options are automatically passed in the background. Registry patches for common issues below are provided and serve as an example.

Preventing timeouts

A connection will timeout after some minutes when nothing is transferred. To prevent this, pass e.g. "-o ServerAliveInterval=30" as SSHFS_OPTIONS. A keep-alive request is sent every 30 seconds.

Map network drive or "net use": Use the provided "ServerAliveInterval.reg" registry patch.

Setting looser permissions for new files and directories

On a shared file server, the default permissions for new files created may be too strict and prevent others from reading and writing them. To set looser permissions, pass e.g. "-o create_file_umask=0117,create_dir_umask=0007" as SSHFS_OPTIONS. This will allow owner/group read and write permissions on new files and owner/group read, write and execute permissions on new directories.

Map network drive or "net use": Use the provided "GroupReadWrite.reg" registry patch.

Project Organization

This is a simple project:

  • sshfs is a submodule pointing to the original SSHFS project.
  • sshfs-win.c is a simple wrapper around the sshfs program that is used to implement the "Map Network Drive" functionality.
  • sshfs-win.wxs is a the Wix file that describes the SSHFS-Win installer.
  • patches is a directory with a couple of simple patches over SSHFS.
  • Makefile drives the overall process of building SSHFS-Win and packaging it into an MSI.

Building

In order to build SSHFS-Win you will need Cygwin and the following Cygwin packages:

  • gcc-core
  • git
  • libglib2.0-devel
  • make
  • meson
  • patch

You will also need:

  • FUSE for Cygwin. It is included with WinFsp and can be installed on a Cygwin installation by executing the command:

    $ sh "$(cat /proc/registry32/HKEY_LOCAL_MACHINE/SOFTWARE/WinFsp/InstallDir | tr -d '\0')"/opt/cygfuse/install.sh
    FUSE for Cygwin installed.
  • Wix toolset. This is a native Windows package that is used to build the SSHFS-Win MSI installer.

To build:

  • Open a Cygwin prompt.
  • Change directory to the sshfs-win repository.
  • Issue make.
  • The sshfs-win repository includes the upstream SSHFS project as a submodule; if you have not already done so, you must initialize it with git submodule update --init sshfs.

License

SSHFS-Win uses the same license as SSHFS, which is GPLv2+. It interfaces with WinFsp which is GPLv3 with a FLOSS exception.

It also packages the following components:

  • Cygwin: LGPLv3
  • GLib2: LGPLv2
  • SSH: "all components are under a BSD licence, or a licence more free than that"

Issues· 308 open

View all issuesOpen on GitHub
  • #480

    Off-topic question about torrent mounting

    Updated Sep 22, 2026
  • #479

    Files containing colon appear in Explorer but cannot be opened or renamed

    Updated Sep 5, 2026
  • #467

    System Error 67 Windows 11 25h2

    Updated Aug 6, 2026
  • #155

    System error 67 when attempting to mount

    Updated Aug 6, 2026
  • #178

    can not disconnect

    Updated Aug 5, 2026
  • #476

    \\sshfs\[email protected]!9082 won't work

    Updated Jul 18, 2026
  • #447

    Is it possible to map a directory instead of a drive letter?

    Updated Jul 5, 2026
  • #100

    Works with mapping, but can't access by UNC without mapping.

    Updated Jul 4, 2026
  • #241

    Is it possible to use sshfs-win through Windows Explorer with 2 Factor Authentication?

    Updated Jul 4, 2026
  • #457

    Workarounds for getting private key access to remote host file systems using SSHFS-Win with Windows Explorer

    Updated Jul 3, 2026

> Tags

Csftpsshsshfswindows

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 25, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言