Class Net::SSH::Transport::VersionNegotiator
In: lib/net/ssh/transport/version-negotiator.rb
Parent: Object

Manages the negotiation of the version strings between client and server.

Methods

negotiate   new  

Constants

VERSION_LINE = /^SSH-/   For processing the version header. The version reported by the server must match this pattern.
REQUIRED_VERSION_PATTERN = /^SSH-(1.99|2.0)-/   Only versions matching this pattern are supported by Net::SSH.

Attributes

header_lines  [R]  An array of lines returned by the server prior to reporting the version.

Public Class methods

Creates a new VersionNegotiator object that logs to the given logger instance.

Public Instance methods

Negotiate version information over the given socket. This will return the version reported by the server.

[Validate]