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

IKeyExchange

public interface IKeyExchange : IDisposable
Represents a key exchange algorithm.
byte[] ExchangeHash { get; }

Gets the exchange hash.

string Name { get; }

Gets the name of the algorithm.

Occurs when the host key is received.

Creates the client-side cipher to use.

Creates the client-side hash algorithm to use.

Creates the compression algorithm to use to deflate data.

Creates the compression algorithm to use to inflate data.

Creates the server-side cipher to use.

Creates the server-side hash algorithm to use.

void Finish()

Finishes the key exchange algorithm.

void Start(Session session, KeyExchangeInitMessage message)

Starts the key exchange algorithm.