# Managed by Ansible, role win_ssh_hardening. Local edits are overwritten. PasswordAuthentication {{ 'yes' if win_ssh_hardening_password_authentication else 'no' }} PermitEmptyPasswords no PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys MaxAuthTries {{ win_ssh_hardening_max_auth_tries }} LoginGraceTime {{ win_ssh_hardening_login_grace_time }} {% if win_ssh_hardening_allow_groups %} AllowGroups {% for g in win_ssh_hardening_allow_groups %}"{{ g }}"{{ ' ' if not loop.last else '' }}{% endfor %} {% endif %} AllowAgentForwarding {{ 'yes' if win_ssh_hardening_agent_forwarding else 'no' }} AllowTcpForwarding {{ 'yes' if win_ssh_hardening_tcp_forwarding else 'no' }} ClientAliveInterval {{ win_ssh_hardening_client_alive_interval }} ClientAliveCountMax {{ win_ssh_hardening_client_alive_count_max }} KexAlgorithms {{ win_ssh_hardening_kex_algorithms | join(',') }} Ciphers {{ win_ssh_hardening_ciphers | join(',') }} MACs {{ win_ssh_hardening_macs | join(',') }} Subsystem sftp sftp-server.exe # Administrators' keys live in one file only they and SYSTEM can reach. A key # in an administrator's own profile is ignored. Match Group administrators AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys