# {{ ansible_managed }} # See the sshd_config(5) manpage for details {% for port in common_openssh_ports -%} Port {{ port }} {% endfor %} {% for address in common_openssh_listen_addresses -%} ListenAddress {{ address }} {% endfor %} {% for hostkey in common_openssh_host_keys %} HostKey /etc/ssh/ssh_host_{{ hostkey }}_key {% endfor %} PermitRootLogin {{ common_openssh_permit_root_login }} ChallengeResponseAuthentication no PasswordAuthentication {{ common_openssh_password_authentication }} X11Forwarding {{ common_openssh_x11_forwarding }} PrintMotd no {% if ansible_os_family == "Debian" %} DebianBanner no {% endif %} AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server 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