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

ServiceFactory

Basic factory for creating new services.
public ServiceFactory()

Creates a IClientAuthentication.

public IKeyExchange CreateKeyExchange(IDictionary<string, Type> clientAlgorithms, string[] serverAlgorithms)

Negotiates a key exchange algorithm, and creates a IKeyExchange for the negotiated algorithm.

Create a new PipeStream.

public ISession CreateSession(ConnectionInfo connectionInfo)

Creates a new ISession with the specified ConnectionInfo.

public ISftpSession CreateSftpSession(ISession session, TimeSpan operationTimeout, Encoding encoding)

Creates a new ISftpSession in a given ISession and with the specified operation timeout and encoding.