Re: Disable openssh version banner

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 02/28/03


From: Kasper Dupont <kasperd@daimi.au.dk>
Date: Fri, 28 Feb 2003 10:52:13 +0100

retribution wrote:
>
> I would imagine that the guys who wrote
> openSSH had a more intuitive way to negotiate a connection than the
> plaintext banner.

Instead of guessing about that, you should much rather read the
source to get some facts:

        if (sscanf(server_version_string, "SSH-%d.%d-%[^\n]\n",
            &remote_major, &remote_minor, remote_version) != 3)
                fatal("Bad remote protocol version identification: '%.100s'", buf);

The format must be correct, and the major and minor must also
be correct. The remote_version field is mostly used to recoginze
buggy implementations and take appropriate actions.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_);