<PackageReference Include="SSH.NET" Version="2020.0.1" />

SshIdentification

Represents an SSH identification.
using System; namespace Renci.SshNet.Connection { internal class SshIdentification { public string SoftwareVersion { get; set; } public string ProtocolVersion { get; set; } public string Comments { get; set; } public SshIdentification(string protocolVersion, string softwareVersion) : this(protocolVersion, softwareVersion, null) { } public SshIdentification(string protocolVersion, string softwareVersion, string comments) { if (protocolVersion == null) throw new ArgumentNullException("protocolVersion"); if (softwareVersion == null) throw new ArgumentNullException("softwareVersion"); ProtocolVersion = protocolVersion; SoftwareVersion = softwareVersion; Comments = comments; } public override string ToString() { string text = "SSH-" + ProtocolVersion + "-" + SoftwareVersion; if (Comments != null) text = text + " " + Comments; return text; } } }