PrivateKeyConnectionInfo ClassSSH .NET Client Library Documentation
Provides connection information when private key authentication method is used
Inheritance Hierarchy

OnlineSystem Object
  Renci.SshNet ConnectionInfo
    Renci.SshNet PrivateKeyConnectionInfo

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public class PrivateKeyConnectionInfo : ConnectionInfo, 
	IDisposable
Examples

var connectionInfo = new PrivateKeyConnectionInfo(host, username, new PrivateKeyFile(keyFileStream));
using (var client = new SshClient(connectionInfo))
{
    client.Connect();
    client.Disconnect();
}
See Also