Table of Contents

Class PrivateKeyConnectionInfo

Namespace
Renci.SshNet
Assembly
Renci.SshNet.dll

Provides connection information when private key authentication method is used.

public class PrivateKeyConnectionInfo : ConnectionInfo, IDisposable

Inheritance

Implements

Inherited Members

Constructors

PrivateKeyConnectionInfo(string, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

username string

Connection username.

keyFiles IPrivateKeySource[]

Connection key files.

PrivateKeyConnectionInfo(string, int, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

port int

Connection port.

username string

Connection username.

keyFiles IPrivateKeySource[]

Connection key files.

PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

port int

The port.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

keyFiles IPrivateKeySource[]

The key files.

PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

port int

The port.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

proxyUsername string

The proxy username.

keyFiles IPrivateKeySource[]

The key files.

PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

keyFiles IPrivateKeySource[]

The key files.

PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

proxyUsername string

The proxy username.

keyFiles IPrivateKeySource[]

The key files.

PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, string, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

proxyUsername string

The proxy username.

proxyPassword string

The proxy password.

keyFiles IPrivateKeySource[]

The key files.

PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, string, string, params IPrivateKeySource[])

Initializes a new instance of the Renci.SshNet.PrivateKeyConnectionInfo class.

public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)

Parameters

host string

Connection host.

port int

The port.

username string

Connection username.

proxyType ProxyTypes

Type of the proxy.

proxyHost string

The proxy host.

proxyPort int

The proxy port.

proxyUsername string

The proxy username.

proxyPassword string

The proxy password.

keyFiles IPrivateKeySource[]

The key files.

Properties

KeyFiles

Gets the key files used for authentication.

public ICollection<IPrivateKeySource> KeyFiles { get; }

Property Value

ICollection<IPrivateKeySource>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.