summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorKees Cook <kees@debian.org>2014-02-09 16:10:06 +0000
committerColin Watson <cjwatson@debian.org>2020-02-21 12:08:02 +0000
commit7d20d00ea24ec0c3fffacc80ab271d0699d198c6 (patch)
tree2a59419afa18a01c9f1982fad485111e1d4fd6ac /sshd.c
parenta4f868858c3395cacb59c58786b501317b9a3d03 (diff)
Add DebianBanner server configuration option
Setting this to "no" causes sshd to omit the Debian revision from its initial protocol handshake, for those scared by package-versioning.patch. Bug-Debian: http://bugs.debian.org/562048 Forwarded: not-needed Last-Update: 2020-02-21 Patch-Name: debian-banner.patch
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 65916fc6d..da876a900 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2187,7 +2187,8 @@ main(int ac, char **av)
2187 if (!debug_flag) 2187 if (!debug_flag)
2188 alarm(options.login_grace_time); 2188 alarm(options.login_grace_time);
2189 2189
2190 if (kex_exchange_identification(ssh, -1, options.version_addendum) != 0) 2190 if (kex_exchange_identification(ssh, -1, options.debian_banner,
2191 options.version_addendum) != 0)
2191 cleanup_exit(255); /* error already logged */ 2192 cleanup_exit(255); /* error already logged */
2192 2193
2193 ssh_packet_set_nonblocking(ssh); 2194 ssh_packet_set_nonblocking(ssh);