Add SSH Security settings

This commit is contained in:
Daniel A. Maierhofer
2018-03-08 23:17:33 +01:00
parent 1db29a04e8
commit 0e80539f56

View File

@@ -15,6 +15,13 @@ ChallengeResponseAuthentication no
PasswordAuthentication {{ common_openssh_password_authentication }} PasswordAuthentication {{ common_openssh_password_authentication }}
X11Forwarding {{ common_openssh_x11_forwarding }} X11Forwarding {{ common_openssh_x11_forwarding }}
PrintMotd no PrintMotd no
{% if ansible_os_family == "Debian" %}
DebianBanner no
{% endif %}
AcceptEnv LANG LC_* AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes UsePAM yes
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs umac-128-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ssh-rsa