summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 9e8516ca7..72e993d0a 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -199,7 +199,7 @@ LogLevel INFO
199 199
200# Authentication: 200# Authentication:
201LoginGraceTime 120 201LoginGraceTime 120
202PermitRootLogin without-password 202PermitRootLogin prohibit-password
203StrictModes yes 203StrictModes yes
204 204
205RSAAuthentication yes 205RSAAuthentication yes
@@ -312,7 +312,11 @@ if [ "$action" = configure ]; then
312 if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \ 312 if dpkg --compare-versions "$2" lt-nl 1:6.6p1-1 && \
313 [ "$(get_config_option PermitRootLogin)" = yes ] && 313 [ "$(get_config_option PermitRootLogin)" = yes ] &&
314 db_get openssh-server/permit-root-login && [ "$RET" = true ]; then 314 db_get openssh-server/permit-root-login && [ "$RET" = true ]; then
315 set_config_option PermitRootLogin without-password 315 set_config_option PermitRootLogin prohibit-password
316 fi
317 if dpkg --compare-versions "$2" lt-nl 1:7.0p1-1 && \
318 [ "$(get_config_option PermitRootLogin)" = without-password ]; then
319 set_config_option PermitRootLogin prohibit-password
316 fi 320 fi
317fi 321fi
318 322