Negotiates the SSH protocol version and trades information about server and client. This is never used directly–it is always called by the transport layer as part of the initialization process of the transport layer.
Note that this class also encapsulates the negotiated version, and acts as the authoritative reference for any queries regarding the version in effect.
The SSH version string as reported by Net::SSH
Any header text sent by the server prior to sending the version.
The version string reported by the server.
# File lib/net/ssh/transport/server_version.rb, line 30 def initialize(socket, logger, timeout = nil) @header = "" @version = nil @logger = logger negotiate!(socket, timeout) end