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>2019-06-21 16:14:03 +0100
commit0a938d856d024bfff79fac63e65df382ffa444a4 (patch)
tree4db0ecfc67c71202126eda6812fac6e49fa20f97 /sshd.c
parent0085b2106eb5307ebdae9601471d8387961b2e83 (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: 2019-06-05 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 e3e96426e..1e7ece588 100644
--- a/sshd.c
+++ b/sshd.c
@@ -2160,7 +2160,8 @@ main(int ac, char **av)
2160 if (!debug_flag) 2160 if (!debug_flag)
2161 alarm(options.login_grace_time); 2161 alarm(options.login_grace_time);
2162 2162
2163 if (kex_exchange_identification(ssh, -1, options.version_addendum) != 0) 2163 if (kex_exchange_identification(ssh, -1, options.debian_banner,
2164 options.version_addendum) != 0)
2164 cleanup_exit(255); /* error already logged */ 2165 cleanup_exit(255); /* error already logged */
2165 2166
2166 ssh_packet_set_nonblocking(ssh); 2167 ssh_packet_set_nonblocking(ssh);