

'DeclarationPublic Class SSHClient Implements System.IDisposable
'UsageDim instance As SSHClient
public class SSHClient : System.IDisposable
SSHClient is the
SSHClient contains properties and methods to connect and disconnect from a remote SSH server. Perform user authentication. Handle events that are global to a SSH connection.
A SSHClient object is used as a parameter in the creation of SSH services like SFtp.
The SSH specification allows for a single physical SSH connection to establish multiple logical channels for services like SFtp to the same SSH server. So, a single SSHClient object can be used as a parameter to multiple instances of SSH services (like SFtp for example) to the same server. Each time, a logical "channel" will be managed by SSHClient with the server.
System.Object
Xceed.SSH.Client.SSHClient
| Name | Description | |
|---|---|---|
![]() | SSHClient Constructor | Overloaded. Initializes a new instance of the SSHClient class. |
| Name | Description | |
|---|---|---|
![]() | CompressionAlgorithmListInternal | |
![]() | ConnectionManagerInternal | The SSHClientConnectionManager that the SSHClient uses. |
![]() | DataIntegrityAlgorithmListInternal | |
![]() | EncryptionAlgorithmListInternal | |
![]() | HostNameStringInternal | |
![]() | IOProviderInternal | The SocketIOProvider that the SSHClient uses. |
![]() | LanguagesAlgorithmListInternal | |
![]() | ProtocolProviderInternal | The SSHProtocolsProvider that the SSHClient uses. |
| Name | Description | |
|---|---|---|
![]() | ActiveDataIntegrityAlgorithmClientToServerString | TODODOC Gets a string that indicates the currently active encryption algorithm for data that goes from the client to the server. |
![]() | ActiveDataIntegrityAlgorithmServerToClientString | TODODOC Gets a string that indicates the currently active encryption algorithm for data that goes from the server to the client. |
![]() | ActiveEncryptionAlgorithmClientToServerString | TODODOC Gets a string that indicates the currently active encryption algorithm for data that goes from the client to the server. |
![]() | ActiveEncryptionAlgorithmServerToClientString | TODODOC Gets a string that indicates the currently active encryption algorithm for data that goes from the server to the client. |
![]() | ActiveKeyExchangeAlgorithmString | TODODOC Gets a string that indicates the currently active key exchange algorithm. |
![]() | ActivePublicKeyAlgorithmString | TODODOC Gets a string that indicates the currently active public key algorithm. |
![]() | AllowTraceWriterClosure | Get or sets a Boolean value that indicates whether SSHClient can close its assigned TraceWriter as part of its cleanup. |
![]() | Authenticated | Gets a System.Boolean value that indicates if the SSHClient object is authenticated to a server or not. |
![]() | CompressionAlgorithmList | |
![]() | Connected | Gets a System.Boolean value that indicates if the SSHClient object is connected to a server or not. |
![]() | ConnectionManager | |
![]() | ConnectionProtocol | Gets the SSHClient's SSH connection protocol. |
![]() | DataIntegrityAlgorithmList | |
![]() | EncryptionAlgorithmList | |
![]() | EncryptionAlgorithmListClientToServer | |
![]() | EncryptionAlgorithmListServerToClient | |
![]() | HostName | Gets the host name used to connect, or an empty string if not connected. |
![]() | IOProvider | |
![]() | KeyExchangeAlgorithmList | |
![]() | LanguagesAlgorithmList | |
![]() | LocalAddress | Gets or sets the local IP address and port from which the SSH client will be or is connected from. |
![]() | Port | Gets the port being used by the SSH client. |
![]() | ProxyClient | Gets or sets the proxy client to use for connecting and/or logging in via a proxy server. |
![]() | PublicKeyAlgorithmList | |
![]() | ServerEndPoint | Gets the host name used to connect expressed as a System.Net.IPEndPoint object or null if the client is not connected. |
![]() | ServerIdentificationComments | |
![]() | ServerIdentificationSoftwareVersion | |
![]() | ServerIdentificationSoftwareVersionAndComments | |
![]() | State | |
![]() | TcpIpIOProvider | |
![]() | Timeout | Gets or sets a value, in seconds, indicating after what period of time an SSH operation should timeout. |
![]() | TimeoutSeconds | TODODOC Gets or sets a value, in seconds, indicating after what period of time an SSH operation should timeout. |
![]() | TraceWriter | Gets or sets the System.IO.TextWriter which will trace the connection/deconnection process as well as the commands and replies sent to and received from the SSH server. |
![]() | TraceWriterTimestampFormat | Gets or sets the format used to generate textual timestamps for logs written to the TraceWriter. |
![]() | TraceWriterTimestampFormatProvider | Gets or sets a format provider object used to generate textual timestamps for logs written to the TraceWriter. |
![]() | TraceWriterTimestampUTC | Gets or sets a boolean value that indicates whether the timestamps for logs written to the TraceWriter use UTC time or local time. |
![]() | TransportLayerProtocol | |
![]() | WaitForChannelCloseMessage | |
![]() | WaitForServerKeys | Gets or sets a System.Boolean value that indicates whether, when connecting, the client should wait for the server to send its encryption keys. |
| Name | Description | |
|---|---|---|
![]() | Authenticate | Overloaded. Performs authentication of the SSHClient's SSH connection using the provided username and password. |
![]() | CompleteConnect | |
![]() | Connect | Overloaded. Connects the SSHClient to an SSH server. |
![]() | Disconnect | Disconnects the SSHClient from the SSH server. |
![]() | Dispose | Overloaded. TODODOC Performs cleanup of unmanaged resources. |
![]() | GetSupportedAuthenticationMethods | |
![]() | PrepareConnect | Overloaded. |
![]() | ReExchangeKeys | |
![]() | TraceWriterTestTimestamp | Overloaded. |
| Name | Description | |
|---|---|---|
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() | OnAlgorithmsNegotiated | |
![]() | OnAuthenticationBannerReceived | |
![]() | OnDisconnected | |
![]() | OnHostKeyReceived |
| Name | Description | |
|---|---|---|
![]() | AlgorithmsNegotiated | TODODOC |
![]() | AuthenticationBannerReceived | TODODOC |
![]() | Disconnected | TODODOC |
![]() | HostKeyReceived | This event is triggered during connection sequence to a SSH server when the server's public key is received for authentication. |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Standard: netstandard2.0, netstandard2.1
.NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.