- Add |default() fallbacks for ntpserver, template_run_date, deb_mirror, and sshd.* to prevent template crash - Remove include_role: name=alpine from base tasks (no such role) - Fix SSH -t flag placement in Makefile reboot targets - Update findings.md
89 lines
1.9 KiB
Django/Jinja
89 lines
1.9 KiB
Django/Jinja
# Host: {{ inventory_hostname }}
|
|
# Built from templates/etc/ssh/sshd_config.j2
|
|
# ------------------------------------------------------------------------------
|
|
|
|
Include /etc/ssh/sshd_config.d/*.conf
|
|
|
|
#Port 22
|
|
#AddressFamily any
|
|
#ListenAddress 0.0.0.0
|
|
#ListenAddress ::
|
|
|
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
|
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
|
#HostKey /etc/ssh/ssh_host_ed25519_key
|
|
|
|
# Ciphers and keying
|
|
#RekeyLimit default none
|
|
|
|
# Logging
|
|
#SyslogFacility AUTH
|
|
#LogLevel INFO
|
|
|
|
# Authentication:
|
|
#LoginGraceTime 2m
|
|
PermitRootLogin {{ sshd.permit_root_login | default('prohibit-password') }}
|
|
#StrictModes yes
|
|
#MaxAuthTries 6
|
|
#MaxSessions 10
|
|
|
|
#PubkeyAuthentication yes
|
|
|
|
#AuthorizedPrincipalsFile none
|
|
|
|
#AuthorizedKeysCommand none
|
|
#AuthorizedKeysCommandUser nobody
|
|
|
|
#HostbasedAuthentication no
|
|
#IgnoreUserKnownHosts no
|
|
#IgnoreRhosts yes
|
|
|
|
# To disable tunneled clear text passwords, change to no here!
|
|
#PasswordAuthentication yes
|
|
#PermitEmptyPasswords no
|
|
|
|
KbdInteractiveAuthentication no
|
|
|
|
# Kerberos options
|
|
#KerberosAuthentication no
|
|
#KerberosOrLocalPasswd yes
|
|
#KerberosTicketCleanup yes
|
|
#KerberosGetAFSToken no
|
|
|
|
# GSSAPI options
|
|
#GSSAPIAuthentication no
|
|
#GSSAPICleanupCredentials yes
|
|
#GSSAPIStrictAcceptorCheck yes
|
|
#GSSAPIKeyExchange no
|
|
|
|
UsePAM yes
|
|
|
|
AllowAgentForwarding {{ sshd.forwarding.agent | default('no') }}
|
|
AllowTcpForwarding {{ sshd.forwarding.tcp | default('yes') }}
|
|
GatewayPorts {{ sshd.forwarding.gateway | default('no') }}
|
|
X11Forwarding {{ sshd.forwarding.x11 | default('no') }}
|
|
#X11DisplayOffset 10
|
|
#X11UseLocalhost yes
|
|
#PermitTTY yes
|
|
PrintMotd no
|
|
#PrintLastLog yes
|
|
#TCPKeepAlive yes
|
|
#PermitUserEnvironment no
|
|
#Compression delayed
|
|
#ClientAliveInterval 0
|
|
#ClientAliveCountMax 3
|
|
#UseDNS no
|
|
#PidFile /run/sshd.pid
|
|
#MaxStartups 10:30:100
|
|
#PermitTunnel no
|
|
#ChrootDirectory none
|
|
#VersionAddendum none
|
|
|
|
# no default banner path
|
|
#Banner none
|
|
|
|
# Allow client to pass locale environment variables
|
|
AcceptEnv LANG LC_*
|
|
|
|
# SFTP
|
|
Subsystem sftp /usr/lib/openssh/sftp-server
|