aboutsummaryrefslogtreecommitdiff
path: root/templates/sshd_config/Debian_normal.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sshd_config/Debian_normal.erb')
-rw-r--r--templates/sshd_config/Debian_normal.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/sshd_config/Debian_normal.erb b/templates/sshd_config/Debian_normal.erb
index a1d7a45..d105ecc 100644
--- a/templates/sshd_config/Debian_normal.erb
+++ b/templates/sshd_config/Debian_normal.erb
@@ -35,7 +35,12 @@ PermitRootLogin without-password
StrictModes yes
RSAAuthentication yes
+<%- if real_sshd_sshd_pubkey_authentication.to_s == 'yes' then %>
PubkeyAuthentication yes
+<%- else %>
+PubkeyAuthentication no
+<%- end %>
+
#AuthorizedKeysFile %h/.ssh/authorized_keys
# rhosts authentication should not be used