JustSFTP.Server
5.0.0
dotnet add package JustSFTP.Server --version 5.0.0
NuGet\Install-Package JustSFTP.Server -Version 5.0.0
<PackageReference Include="JustSFTP.Server" Version="5.0.0" />
<PackageVersion Include="JustSFTP.Server" Version="5.0.0" />
<PackageReference Include="JustSFTP.Server" />
paket add JustSFTP.Server --version 5.0.0
#r "nuget: JustSFTP.Server, 5.0.0"
#:package JustSFTP.Server@5.0.0
#addin nuget:?package=JustSFTP.Server&version=5.0.0
#tool nuget:?package=JustSFTP.Server&version=5.0.0
Just SFTP Server
This library implements the V3 version of the SFTP protocol, and just it - you are free to use any transport/encryption layer (e.g. using a library like Microsoft's DevTunnels SSH), or OpenSSH's daemon - see JustSFTP.Host.
The SFTPServer class takes 2 Streams and optionally an ISFTPHandler on which the SFTP commands will be invoked. This package comes with a DefaultSFTPHandler which provides basic I/O on the hosts's filesystem (based on a rootdirectory), but it should be pretty easy to implement your own ISFTPHandler so you can, for example, implement a virtual filesystem.
Implementing an ISFTPHandler
Implementing an ISFTPHandler should be pretty straightforward, simply implement the ISFTPHandler interface.
Throw a HandlerException to reflect a status code back tothe client.
Exceptions that are not inherited from the HandlerException will be returned to the client as Failure (SSH_FX_FAILURE).
For an example implementation you can have a look at the DefaultSFTPHandler.
Known issues and limitations
This library only implements SFTP v3 (and presumably v2 although untested); higher versions are not supported. Clients connecting with a higher version will be negotiated down to v3.
The
DefaultSFTPHandleris not well tested nor fully featured, and serves mostly as an example implementation ofISFTPHandler.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- JustSFTP.Protocol (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 29 | 9/27/2026 |
| 4.1.1 | 47 | 9/24/2026 |
| 4.1.0 | 265 | 9/19/2026 |
| 4.0.0 | 100 | 9/5/2026 |
| 3.0.1 | 102 | 8/30/2026 |
| 3.0.0 | 101 | 8/30/2026 |
| 2.0.0 | 102 | 8/28/2026 |
| 1.3.3 | 200 | 6/5/2026 |
| 1.3.2 | 134 | 4/25/2026 |
| 1.3.0 | 116 | 4/24/2026 |
| 1.2.0 | 139 | 4/3/2026 |
| 1.0.3 | 372 | 2/26/2026 |
| 1.0.0 | 129 | 2/21/2026 |
| 0.2.1 | 127 | 2/21/2026 |