security-basics February 2008 archive
Main Archive Page > Month Archives  > security-basics archives
security-basics: Re: OpenSSH 4.3 Banner Masking

Re: OpenSSH 4.3 Banner Masking

From: Jeronimo Zucco <jczucco_at_nospam>
Date: Thu Feb 28 2008 - 11:19:34 GMT
To: my_bit_bucket@yahoo.com


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

my_bit_bucket@yahoo.com wrote:
| Is there a way to mask the banner displayed by OpenSSH 4.3 connecting
to the service by SSH? For example, my test system displays "SSH-2.0-OpenSSH_4.3" when I "telnet [hostname] 22".
|
| Thanks very much!
|
| Regards,
| Bit Bucket

~ If you are compiling from source, you have to edit sshd.c and change the line:

snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s\n", major, minor, SSH_VERSION);

Change SSH_VERSION string for what you want to show.

  • -- Jeronimo Zucco LPIC-1 Linux Professional Institute Certified Núcleo de Processamento de Dados Universidade de Caxias do Sul

http://jczucco.blogspot.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHxpjFWi/PuDd2cZARAr5bAJ0Yz474jzD62nL3xpijqbagtyaFpgCeJNEz YbpTCckQ8DfokoWhaEqgUe8=
=c6Qo
-----END PGP SIGNATURE-----