diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 8 |
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: |
201 | LoginGraceTime 120 | 201 | LoginGraceTime 120 |
202 | PermitRootLogin without-password | 202 | PermitRootLogin prohibit-password |
203 | StrictModes yes | 203 | StrictModes yes |
204 | 204 | ||
205 | RSAAuthentication yes | 205 | RSAAuthentication 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 |
317 | fi | 321 | fi |
318 | 322 | ||