<PackageReference Include="SSH.NET" Version="2024.2.0" />

Renci.SshNet.Connection.ProtocolVersionExchange

Handles the SSH protocol version exchange.

public SshIdentification Start(string clientVersion, Socket socket, TimeSpan timeout)

Performs the SSH protocol version exchange.

public Task<SshIdentification> StartAsync(string clientVersion, Socket socket, CancellationToken cancellationToken)

Asynchronously performs the SSH protocol version exchange.