djm at mindrot.org
Fri Apr 19 21:18:07 EST 2013
On Fri, 19 Apr 2013, Jonathan Pauli wrote:
> I'm working with a pure PHP implementation of the SSH2 protocol.
> So, I'm wondering if there is some way to trigger sshd to send the banner.
> Can I request it explicitly with some message to sshd?
sshd sends the banner for protocol 2 connections at before it responds to
the the first SSH_MSG_USERAUTH_REQUEST packet. I.e
Server: SSH2_MSG_USERAUTH_SUCCESS, SSH2_MSG_USERAUTH_FAILURE
(or a userauth method-specific reply)
Have a look at auth2.c:input_userauth_request() to see how it works.
There isn't anything else you can do to trigger it than attempting
More information about the openssh-unix-dev