Re: Random local port (General questions)
Whups, wrong message. Looking at the right section of the RFC, part 7.1:
If a client passes 0 as port number to bind and has 'want reply' as
TRUE, then the server allocates the next available unprivileged port
number and replies with the following message; otherwise, there is no
response-specific data.
byte SSH_MSG_REQUEST_SUCCESS
uint32 port that was bound on the server