From 678cc9066cb358b8a436341b4e31b796b4d82a4c Mon Sep 17 00:00:00 2001 From: Alexander Weidinger Date: Thu, 23 Feb 2017 01:19:21 +0100 Subject: [PATCH] PrintLastLog missing in FreeBSD 10.3 --- openssh/files/sshd_config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openssh/files/sshd_config b/openssh/files/sshd_config index 6a759e2..8038e4a 100644 --- a/openssh/files/sshd_config +++ b/openssh/files/sshd_config @@ -145,7 +145,10 @@ {{ option('AllowTcpForwarding', 'yes') }} {{ option_default_uncommented('X11DisplayOffset', '10') }} {{ option_default_uncommented('PrintMotd', 'no') }} +{# Bug in FreeBSD 10.3 (?) See https://lists.freebsd.org/pipermail/freebsd-stable/2016-April/084501.html #} +{% if not (salt['grains.get']('os') == 'FreeBSD' and salt['grains.get']('osrelease') == '10.3') -%} {{ option_default_uncommented('PrintLastLog', 'yes') }} +{% endif -%} {{ option_default_uncommented('TCPKeepAlive', 'yes') }} {{ option('UseLogin', 'no') }}