Table of Contents

Class SshIdentification

Namespace
Renci.SshNet.Connection
Assembly
Renci.SshNet.dll

Represents an SSH identification.

public sealed class SshIdentification

Inheritance

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

protocolVersion string

The SSH protocol version.

softwareVersion string

The software version of the implementation.

Exceptions

ArgumentNullException

protocolVersion is null.

ArgumentNullException

softwareVersion is 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

protocolVersion string

The SSH protocol version.

softwareVersion string

The software version of the implementation.

comments string

The comments.

Exceptions

ArgumentNullException

protocolVersion is null.

ArgumentNullException

softwareVersion is null.

Properties

Comments

Gets the comments.

public string Comments { get; }

Property Value

string

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

string

SoftwareVersion

Gets the software version of the implementation.

public string SoftwareVersion { get; }

Property Value

string

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.