Re: Disable openssh version banner
From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 02/28/03
- Next message: Tarald Holm: "iptables and bind"
- Previous message: WX: "Clam antivirus"
- In reply to: retribution: "Re: Disable openssh version banner"
- Next in thread: Juha Laiho: "Re: Disable openssh version banner"
- Reply: Juha Laiho: "Re: Disable openssh version banner"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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(_);
- Next message: Tarald Holm: "iptables and bind"
- Previous message: WX: "Clam antivirus"
- In reply to: retribution: "Re: Disable openssh version banner"
- Next in thread: Juha Laiho: "Re: Disable openssh version banner"
- Reply: Juha Laiho: "Re: Disable openssh version banner"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]