Class SshIdentification
- Namespace
- Renci.SshNet.Connection
- Assembly
- Renci.SshNet.dll
Represents an SSH identification.
public sealed class SshIdentificationInheritance
Inherited Members
Constructors
SshIdentification(string, string)
Initializes a new instance of the Renci.SshNet.Connection.SshIdentification class with the specified protocol version and software version.
public SshIdentification(string protocolVersion, string softwareVersion)Parameters
protocolVersionstring-
The SSH protocol version.
softwareVersionstring-
The software version of the implementation.
Exceptions
- ArgumentNullException
-
protocolVersionis null. - ArgumentNullException
-
softwareVersionis null.
SshIdentification(string, string, string)
Initializes a new instance of the Renci.SshNet.Connection.SshIdentification class with the specified protocol version, software version and comments.
public SshIdentification(string protocolVersion, string softwareVersion, string comments)Parameters
protocolVersionstring-
The SSH protocol version.
softwareVersionstring-
The software version of the implementation.
commentsstring-
The comments.
Exceptions
- ArgumentNullException
-
protocolVersionis null. - ArgumentNullException
-
softwareVersionis null.
Properties
Comments
Gets the comments.
public string Comments { get; }Property Value
Remarks
Renci.SshNet.Connection.SshIdentification.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
SoftwareVersion
Gets the software version of the implementation.
public string SoftwareVersion { get; }Property Value
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.