// create a server instance
var server = new FileServer();
// bind SFTP/SSH to port 22
// add server key
new SshPrivateKey("key.ppk", "password"));
// add a user
"user01", "password", @"c:\data\user01");
// start server in the background
Show me more code...
SFTP, SCP and SSH server library for C# and VB.NET developers.
Provides secure remote file system access over an SSH channel using the SFTP protocol.
Makes it easy to create an SFTP server that can be used by Rebex SFTP
or any third-party SFTP, SCP or SSH client.
Why Rebex File Server
Configuring and launching an SFTP
or SCP server
sounds like a complicated task.
But Rebex File Server makes it simple. All you need to launch a full-featured server can
be done in several lines of code.
This includes binding to an IP/port, defining users, adding private keys, and more.
SSH shell server
Launch SSH server
use a predefined scp-ready shell or define your own custom commands. Now you are ready
to accept SSH connections from users.
SSH port forwarding/tunneling server
Rebex File Server supports
outgoing SSH port forwarding
which makes it for client possible to establish TCP tunnels through the SSH server, essentially using it as a proxy.
Based on open standards
Rebex File Server is based on SSH v2 and SFTP v3/v4, which makes it compatible with a wide range of third-party applications and libraries
such as OpenSSH, WinSCP, PuTTY, and many more. As long as the client side speaks SSH, SFTP or SCP, Rebex File Server will happily accept a connection.
One of the main points of using SFTP is to ensure file transfers are secure and reliable. Rebex File Server
provides a rich set of security features.
You'll find APIs for verifying client identity and fine-tuning SSH parameters
. PKCS8, PuTTY and OpenSSH
private key formats
You can easily generate a key pair
for SSH authentication as well.
Even private keys stored on smart cards are supported.
Try it online
Need to make sure that your SFTP, SCP or SSH client works flawlessly with Rebex File Server?
Just connect to
and give it a try - browse the directories and downloading some files (or let us know if you would like to try uploading as well).
You can also try to download the Rebex Free Tiny Sftp Server - a minimalist SFTP server Windows application based on this component.
2.0, 3.0, 3.5. 4.0, 4.5.x, 4.6.x; both 32-bit and 64-bit editions on Windows XP or later; Visual Studio 2008, 2010, 2012, 2013, 2015, 2017
.NET Compact Framework
2.0, 3.5, 3.9 on Windows Mobile, Windows CE, Pocket PC, Windows Embedded Compact 2013; Visual Studio 2008, 2012, 2013
3.x, 4.x on Linux and Apple macOS (OS X)
Xamarin.iOS 8.6 or later; Xamarin Studio
Xamarin.Android 4 or later; Xamarin Studio
Supports Visual Studio 2008, 2010, 2012, 2013, 2015 and 2017.
Learn more about supported standards and platforms.
Experimental support for Universal Windows Platform (Windows 10, Windows 10 Mobile, Windows 10 IoT).
Experimental support for Xamarin.Mac platform (assemblies are suitable for Xamarin.Mac Mobile and Xamarin.Mac .NET 4.5 Framework projects).
Many more features...
Rebex File Server is the latest addition to our component portfolio.
It builds on our experience with SSH and SFTP, it is a perfect
companion to Rebex SFTP client,
and it provides a rich set of additional features. For example:
- Public key authentication
- RSA and DSA server keys
- ZLIB compression
- Custom authentication providers
- Custom file access control
- Custom shell commands
What others are saying
I recently purchased your Secure Server pack so I could integrate SFTP server functionality into a cross - platform remote support package we use to support our customers, and so far have found it to be an excellent solution with an easy to use API and great cross - platform support - great work!
This weekend I thought it would be interesting to add a reasonably minimal SSH shell to our support solution. Again, it was really easy to enable that in your product and to therefore provide your default minimal shell functionality.