<PackageReference Include="SSH.NET" Version="2016.1.0-beta2" />

IServiceFactory

interface IServiceFactory
Factory for creating new services.

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

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

INetConfSession CreateNetConfSession(ISession session, int operationTimeout)

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

Create a new PipeStream.

Creates a new ISession with the specified ConnectionInfo.

ISftpFileReader CreateSftpFileReader(string fileName, ISftpSession sftpSession, uint bufferSize)

ISftpSession CreateSftpSession(ISession session, int operationTimeout, Encoding encoding, ISftpResponseFactory sftpMessageFactory)

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