21 lines
633 B
Django/Jinja
21 lines
633 B
Django/Jinja
# {{ 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
|
|
AcceptEnv LANG LC_*
|
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
|
UsePAM yes
|