Quickstart
1. Install NuGet package
dotnet add NullOpsDevs.LibSsh
<ItemGroup>
<PackageReference Include="NullOpsDevs.LibSsh" Version="<...>" />
</ItemGroup>
2. Connect to the server and execute some commands!
using NullOpsDevs.LibSsh;
using NullOpsDevs.LibSsh.Credentials;
var ssh = new SshSession();
ssh.Connect("localhost", 2222);
ssh.Authenticate(SshCredential.FromPassword("user", "12345"));
Console.WriteLine(ssh.ExecuteCommand("ls").Stdout);
Next Steps
Session Lifecycle - Understand how sessions progress through states
Authentication - Learn about all authentication methods
Command Execution - Execute commands with PTY support
File Transfer with SCP - Upload and download files
Error Handling - Handle SSH errors properly
Algorithm and Method Preferences - Configure security settings
03 November 2025