
Description
Need your C# app to run a command on a server or push a few files? Shelling out to ssh.exe and scraping its output works until it lands on a machine where it doesn't. SSH.NET implements the SSH protocol in fully managed code, so it is one NuGet package and a few lines to connect, run commands and move files.
It started as a replacement for the abandoned Sharp.SSH and was built around parallelism from day one, so several channels can run at once without choking. It is MIT-licensed, has over four thousand GitHub stars, and sits underneath plenty of deployment tools and admin panels.
Remote commands: sync and async APIs that return the output and exit code, handy for deployment automation.
SFTP and SCP: upload, download, list directories and change permissions straight from code instead of building scp command lines.
Port forwarding: local, remote and dynamic forwarding, so your app can open its own SSH tunnel to a private database.
Authentication: password, public key, keyboard-interactive and multi-factor, with several key files per connection.
Proxies and algorithms: connects through SOCKS4, SOCKS5 and HTTP proxies, covers the common key exchange, host key and MAC algorithms, and can verify host fingerprints.
Platforms: targets .NET Framework and .NET Standard, so both new and legacy projects can reference it.
It started as a replacement for the abandoned Sharp.SSH and was built around parallelism from day one, so several channels can run at once without choking. It is MIT-licensed, has over four thousand GitHub stars, and sits underneath plenty of deployment tools and admin panels.
Features
Remote commands: sync and async APIs that return the output and exit code, handy for deployment automation.
SFTP and SCP: upload, download, list directories and change permissions straight from code instead of building scp command lines.
Port forwarding: local, remote and dynamic forwarding, so your app can open its own SSH tunnel to a private database.
Authentication: password, public key, keyboard-interactive and multi-factor, with several key files per connection.
Proxies and algorithms: connects through SOCKS4, SOCKS5 and HTTP proxies, covers the common key exchange, host key and MAC algorithms, and can verify host fingerprints.
Platforms: targets .NET Framework and .NET Standard, so both new and legacy projects can reference it.
