From 4a6602e877d61692b69610c9a271edb66fdc741f Mon Sep 17 00:00:00 2001 From: Evgeniy Ivanov Date: Sat, 20 Aug 2016 14:14:09 +0300 Subject: [PATCH] RSAAuthentication no; Turn off SFTP; Turn off X11 forwarding; #51 --- roles/common/templates/sshd_config.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/common/templates/sshd_config.j2 b/roles/common/templates/sshd_config.j2 index 65b4356..d17d9f6 100644 --- a/roles/common/templates/sshd_config.j2 +++ b/roles/common/templates/sshd_config.j2 @@ -32,7 +32,7 @@ LoginGraceTime 120 PermitRootLogin without-password StrictModes yes -RSAAuthentication yes +RSAAuthentication no PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys @@ -68,7 +68,7 @@ PasswordAuthentication no #GSSAPIAuthentication no #GSSAPICleanupCredentials yes -X11Forwarding yes +X11Forwarding no X11DisplayOffset 10 PrintMotd no PrintLastLog yes @@ -81,7 +81,7 @@ TCPKeepAlive yes # Allow client to pass locale environment variables AcceptEnv LANG LC_* -Subsystem sftp /usr/lib/openssh/sftp-server +# Subsystem sftp /usr/lib/openssh/sftp-server # Set this to 'yes' to enable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will