1 Description: Add DebianBanner server configuration option
2 Setting this to "no" causes sshd to omit the Debian revision from its
3 initial protocol handshake, for those scared by package-versioning.patch.
4 Author: Kees Cook <kees@debian.org>
5 Bug-Debian: http://bugs.debian.org/562048
7 Last-Update: 2010-02-28
10 ===================================================================
14 options->authorized_principals_file = NULL;
15 options->ip_qos_interactive = -1;
16 options->ip_qos_bulk = -1;
17 + options->debian_banner = -1;
22 options->ip_qos_interactive = IPTOS_LOWDELAY;
23 if (options->ip_qos_bulk == -1)
24 options->ip_qos_bulk = IPTOS_THROUGHPUT;
25 + if (options->debian_banner == -1)
26 + options->debian_banner = 1;
28 /* Turn privilege separation on by default */
29 if (use_privsep == -1)
31 sZeroKnowledgePasswordAuthentication, sHostCertificate,
32 sRevokedKeys, sTrustedUserCAKeys, sAuthorizedPrincipalsFile,
33 sKexAlgorithms, sIPQoS,
35 sDeprecated, sUnsupported
39 { "authorizedprincipalsfile", sAuthorizedPrincipalsFile, SSHCFG_ALL },
40 { "kexalgorithms", sKexAlgorithms, SSHCFG_GLOBAL },
41 { "ipqos", sIPQoS, SSHCFG_ALL },
42 + { "debianbanner", sDebianBanner, SSHCFG_GLOBAL },
43 { NULL, sBadOption, 0 }
46 @@ -1439,6 +1444,10 @@
51 + intptr = &options->debian_banner;
55 logit("%s line %d: Deprecated option %s",
56 filename, linenum, arg);
58 ===================================================================
63 int num_permitted_opens;
67 char *chroot_directory;
68 char *revoked_keys_file;
69 char *trusted_user_ca_keys;
71 ===================================================================
75 minor = PROTOCOL_MINOR_1;
77 snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s%s", major, minor,
78 - SSH_RELEASE, newline);
79 + options.debian_banner ? SSH_RELEASE : SSH_RELEASE_MINIMUM,
81 server_version_string = xstrdup(buf);
83 /* Send our protocol version identification. */
84 Index: b/sshd_config.5
85 ===================================================================
93 +Specifies whether the distribution-specified extra version suffix is
94 +included during initial protocol handshake.
98 This keyword can be followed by a list of group name patterns, separated