Class SshIdentification
- Namespace
- Renci.SshNet.Connection
- Assembly
- Renci.SshNet.dll
Represents an SSH identification.
public sealed class SshIdentification
- Inheritance
-
SshIdentification
- Inherited Members
Constructors
SshIdentification(string, string)
Initializes a new instance of the SshIdentification class with the specified protocol version and software version.
public SshIdentification(string protocolVersion, string softwareVersion)
Parameters
protocolVersion
stringThe SSH protocol version.
softwareVersion
stringThe software version of the implementation.
Exceptions
- ArgumentNullException
protocolVersion
is null.- ArgumentNullException
softwareVersion
is null.
SshIdentification(string, string, string)
Initializes a new instance of the SshIdentification class with the specified protocol version, software version and comments.
public SshIdentification(string protocolVersion, string softwareVersion, string comments)
Parameters
protocolVersion
stringThe SSH protocol version.
softwareVersion
stringThe software version of the implementation.
comments
stringThe comments.
Exceptions
- ArgumentNullException
protocolVersion
is null.- ArgumentNullException
softwareVersion
is null.
Properties
Comments
Gets the comments.
public string Comments { get; }
Property Value
Remarks
Comments should contain additional information that might be useful in solving user problems.
ProtocolVersion
Gets the SSH protocol version.
public string ProtocolVersion { get; }
Property Value
- string
The SSH protocol version.
SoftwareVersion
Gets the software version of the implementation.
public string SoftwareVersion { get; }
Property Value
- string
The software version of the implementation.
Remarks
This is primarily used to trigger compatibility extensions and to indicate the capabilities of an implementation.
Methods
ToString()
Returns the SSH identification string.
public override string ToString()
Returns
- string
The SSH identification string.