Files
ansible/roles/system/templates/sshd_config.j2
2019-09-04 09:06:55 +02:00

37 lines
1.2 KiB
Django/Jinja

##########
# THIS FILE IS MANAGED BY ANSIBLE
# ANY MODIFICATION IS LIKELY TO BE ERASED
##########
# Host key pour les différents protocoles possibles
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
# Algorithmes de chiffrement utilisés
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
# Log
SyslogFacility AUTHPRIV
LogLevel VERBOSE
# Log SFTP
Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO
# Autorisation et authentification
PasswordAuthentication yes
ChallengeResponseAuthentication no
PermitRootLogin without-password
GSSAPIAuthentication yes
UsePAM yes
X11Forwarding yes
# Privilège attribué
UsePrivilegeSeparation sandbox # Default for new installations.
# Variable d'environnement
AcceptEnv LANG LANGUAGE LC_*
AcceptEnv USER_LS_COLORS LS_COLORS
AcceptEnv XMODIFIERS