Rebex SFTP

SFTP and SCP client .NET library

Download 30-day free trial Buy from $349
More .NET libraries
using (var client = new Rebex.Net.Sftp())
  // connect and log in
  client.Login("demo", "password");

  // download a file
  client.Download("/pub/example/readme.txt", @"C:\MyData");
Show me more code...
SFTP client 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 transfer files between your application and Unix/Windows SSH servers.

Choose the right library: What's the difference between FTP, FTPS, SFTP, FTP/SSL, Secure FTP and SCP?

Looking for an SSH/SFTP server library? Try Rebex File Server.
Looking for a standalone SFTP/SSH server for Windows? Try our Rebex Buru SFTP Server.

Why Rebex SFTP?

Easy-to-use API

Connect, log in, download a file, disconnect. Upload all text files in a folder at once. It's easy to start developing with our library. Simple code for common use cases.

Login with... anything

  • Username and password
  • Public/private key
  • X.509 client certificate
  • Kerberos
  • NTLM
  • Single sign-on (Kerberos or NTLM)
  • Keyboard-interactive authentication

Rich file API

Upload a file from the filesystem or memory. Rename and move files. Check existing files. Or perform other single file SFTP operations.

Or simply transfer many files at once. Upload and download whole directory structures. Use wildcards or file sets to specify which files to transfer. Monitor transfer progress with events.

Directory operations

Need to work with directories? List their content, create or rename them. You can even delete non-empty folders recursively (and handle symlinks properly) using a single line of code.

Modern SSH core

Rebex SFTP is based on our SSH client library with up-to-date cipher support, which includes AES/GCM, ChaCha20/Poly1305, Ed25519 and all the common SSH ciphers.

Need to execute a command on the SSH server or tunnel through it? Want to generate a key pair for SSH authentication? All included.


One of the main points of using SFTP is to ensure file transfers are secure and reliable. Rebex SFTP provides a rich set of security features. You'll find APIs for verifying server identity and fine-tuning SSH parameters. PKCS8, PuTTY and OpenSSH private key formats are supported. Even private keys stored on smart cards can be used.

Trusted by thousands of .NET developers worldwide

Thousands of developers chose Rebex SFTP for adding SFTP and SSH capabilities to their applications.

Want an example? Just check your Visual Studio installation folders and you'll find Rebex DLLs there. It's because Microsoft uses Rebex FTP and SFTP in Visual Studio and several other products.

You'll be in a good company.

Many, many more time-tested features

Rebex SFTP is a mature and stable library maintained since 2006. We have been adding new features year after year, inspired by user feedback. For example:

  • Multi-file transfers
  • Transfer progress monitoring
  • Automated transfer resume
  • IFtp interface - unified API for FTP, FTP/SSL and SFTP
  • Transfer speed limiting
  • Ability to use SFTP in SSIS, SQL CLR and PowerShell
  • Symlinks detection and handling
  • ZLIB compression
  • FIPS 140-2 compliant mode

And many, many more...



8, 7, 6, 5

.NET Framework

3.5 SP1, 4.0-4.8.1

.NET Core



6.0 or higher


13.10 or later


10.1 or later

Learn more about supported standards and platforms.

Legacy platforms

(not included in standard product packages - see more)


.NET Compact Framework


.NET Framework


Featured samples

View all 18 C# and VB.NET samples

Satisfied clients

Just wanted to say thanks! I've got a project that needed SFTP services. I was up and running in under 15 minutes after purchasing the SFTP kit. We've been a long time user of your FTP/SMTP services. Please keep up the good work.

Ben Cramer

Dealer Solutions

I have worked closely with the very responsive development staff at Rebex.

I am pleased to say that Rebex SFTP product is by far the fastest on the market. I have tested several others and especially for large file transfers the Rebex SFTP outperforms all others. I would highly recommend using this code base for any projects where file transfer security and speed matter.

Ken Leach

CTO, Hybrid Intelligence

Rebex SFTP had several advantages including a very well thought out API model, detailed documentation and superb technical support.

David Homer

Centrel Solutions Ltd