--- # Generated by tools/hardened.py from ../t1. Edit t1 or the script; this file is regenerated. # # Starting values: Standard's defaults, role by role. Change them here, in # your copy. The rules in policy/ check this file before every run. # ---- ssh_hardening ---- # Every setting the role understands, with the value used when you say nothing. # Override in group_vars or host_vars. Do not edit this file. # Refuse to run when the connecting account has no authorized_keys file. Turn # this off for hosts that use SSH certificates or an AuthorizedKeysCommand, or # that you can reach another way, such as a console. ssh_hardening_require_key_present: true # Authentication ssh_hardening_password_authentication: false ssh_hardening_permit_root_login: "no" # no | prohibit-password | yes ssh_hardening_max_auth_tries: 4 ssh_hardening_login_grace_time: 30 # Who may log in at all. An empty list means no restriction, which is the safe # default, because a wrong group name here locks out everyone. ssh_hardening_allow_groups: [] ssh_hardening_allow_users: [] # Forwarding. Agent forwarding lets whoever controls the host use your key # elsewhere, so it is off unless you say otherwise. ssh_hardening_x11_forwarding: false ssh_hardening_agent_forwarding: false ssh_hardening_tcp_forwarding: true # Idle sessions ssh_hardening_client_alive_interval: 300 ssh_hardening_client_alive_count_max: 2 # Cryptography. These lists drop the older algorithms. Check your oldest client # before narrowing them further. ssh_hardening_kex_algorithms: - curve25519-sha256 - curve25519-sha256@libssh.org - diffie-hellman-group16-sha512 ssh_hardening_ciphers: - chacha20-poly1305@openssh.com - aes256-gcm@openssh.com - aes128-gcm@openssh.com ssh_hardening_macs: - hmac-sha2-512-etm@openssh.com - hmac-sha2-256-etm@openssh.com # Where the drop-in goes. sshd keeps the first value it reads for each setting # and reads drop-ins in name order, so 00 wins over anything the distribution # ships. A 99- prefix would lose to 50-cloud-init.conf on most cloud images. ssh_hardening_dropin_path: /etc/ssh/sshd_config.d/00-hardening.conf