Specifies the security protocols that the SshClient class supports.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
The SshClient class uses the SecurityProtocols enumeration to specify one or more security protocols to be used when establishing a connection with a remote host. Multiple protocols may be specified if necessary and the actual protocol used will be negotiated with the remote host. It is recommended that most applications use protocolDefault when creating a secure connection.
| Member Name | Description | Value |
|---|---|---|
| protocolNone | No security protocol has been selected. Because all connections to an SSH server are secure, this value indicates that a connection has not been established. | 0 |
| protocolSSH1 | The Secure Shell 1.0 protocol has been selected. This version of the protocol has been deprecated and is no longer widely used. It is not recommended that this version of the protocol be used to establish a connection. | 16 |
| protocolSSH2 | The Secure Shell 2.0 protocol has been selected. This is the most commonly used version of the protocol. It is recommended that this version of the protocol be used unless the server explicitly requires the client to use an earlier version. | 32 |
| protocolDefault | Either version 1.0 or 2.0 of the protocol should be used when establishing the connection. The correct version of the protocol will be automatically selected, based on which version is supported by the server. | 48 |
| protocolUnknown | An unknown or unsupported security protocol has been specified. This value indicates an error condition. | 4096 |
Namespace: SocketTools
Assembly: SocketTools.SshClient (in SocketTools.SshClient.dll)