summaryrefslogtreecommitdiff
path: root/playbooks.d/ssh/share/sshd_config
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks.d/ssh/share/sshd_config')
-rw-r--r--playbooks.d/ssh/share/sshd_config10
1 files changed, 8 insertions, 2 deletions
diff --git a/playbooks.d/ssh/share/sshd_config b/playbooks.d/ssh/share/sshd_config
index 97bea2e..b7eae70 100644
--- a/playbooks.d/ssh/share/sshd_config
+++ b/playbooks.d/ssh/share/sshd_config
@@ -12,11 +12,17 @@ Subsystem sftp ${sftp}
# Authentication
AuthorizedKeysFile /etc/ssh/authorized_keys .ssh/authorized_keys
-PermitRootLogin no
-PasswordAuthentication no
ChallengeResponseAuthentication no
+PasswordAuthentication no
+PermitRootLogin no
PubkeyAuthentication no
+# Security
+Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
+HostKeyAlgorithms rsa-sha2-512,rsa-sha2-256,ssh-ed25519
+KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha256
+MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,umac-128-etm@openssh.com
+
# Allow tyil
Match User tyil
PubkeyAuthentication yes