H.6.1 PLUGIN_INIT
Direction: client to plugin
When: the first message sent at connection startup
What happens next: the plugin will send PLUGIN_INIT_RESPONSE
or PLUGIN_INIT_FAILURE
Message contents after the type code:
-
uint32: the highest version number of this protocol that the client knows how to speak.
-
string: the hostname of the server. This will be the logical hostname, in cases where it differs from the physical destination of the network connection. Whatever name would be used by the SSH client to cache the server's host key, that's the same name passed in this message.
-
uint32: the port number on the server. (Together with the host name, this forms a primary key identifying a particular server. Port numbers may be vital because a single host can run two unrelated SSH servers with completely different authentication requirements, e.g. system sshd on port 22 and Gerrit on port 29418.)
-
string: the username that the client will use to log in, if the plugin chooses not to override it. An empty string means that the client has no opinion about this (and might, for example, prompt the user).