Manages the negotiation of the version strings between client and server.
| Constants | |
|---|---|
| REQUIRED_ |
Only versions matching this pattern are supported by Net::SSH. |
| VERSION_ |
For processing the version header. The version reported by the server must match this pattern. |
| Public Attributes | |
|---|---|
| header_ |
An array of lines returned by the server prior to reporting the version. |
| Public Methods | |
|---|---|
| negotiate | Negotiate version information over the given socket. This will return the version reported by the server. |
| new | Creates a new VersionNegotiator object that logs to the given logger instance. |
<code/>and<pre/>for code samples.