Class PrivateKeyConnectionInfo
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Provides connection information when private key authentication method is used.
public class PrivateKeyConnectionInfo : ConnectionInfo, IDisposableInheritance
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
hoststring-
Connection host.
usernamestring-
Connection username.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
portint-
Connection port.
usernamestring-
Connection username.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
proxyPasswordstring-
The proxy password.
keyFilesIPrivateKeySource[]-
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
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
proxyPasswordstring-
The proxy password.
keyFilesIPrivateKeySource[]-
The key files.
Properties
KeyFiles
Gets the key files used for authentication.
public ICollection<IPrivateKeySource> KeyFiles { get; }Property Value
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)