summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-29 17:13:24 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-29 17:13:24 -0300
commit729ca302e389f63e0bc3432f57424123312f3e63 (patch)
treeac34a0ebcdd9c00a049cd5ef5f8b6a2e2382c190 /etc/sshd
parent85b3c597865c13cc7c6253332936ac266c74f164 (diff)
downloadpfsense-729ca302e389f63e0bc3432f57424123312f3e63.zip
pfsense-729ca302e389f63e0bc3432f57424123312f3e63.tar.gz
Hide FreeBSD version from sshd banner. It fixes #3840
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/sshd b/etc/sshd
index 89ffba0..9040169 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -120,6 +120,8 @@
$sshconf .= "Protocol 2\n";
/* Run the server on another port if we have one defined */
$sshconf .= "Port $sshport\n";
+ /* Hide FreeBSD version */
+ $sshconf .= "VersionAddendum \n";
/* Apply package SSHDCond settings if config file exists */
if (file_exists("/etc/sshd_extra")) {
OpenPOWER on IntegriCloud