Files
server-init/sshd_config.template
s0k0l 9301a3aa38 master
chore: init
2026-10-11 09:09:47 +00:00

47 lines
783 B
Plaintext

Include /etc/ssh/sshd_config.d/*.conf
Port {{PORT}}
AddressFamily inet
ListenAddress {{IP}}
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication
LoginGraceTime 30
PermitRootLogin yes
StrictModes yes
MaxAuthTries 4
MaxSessions 10
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
KbdInteractiveAuthentication no
UsePAM yes
# Forwarding
AllowAgentForwarding no
AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding no
PrintMotd no
# Keep-alive
ClientAliveInterval 60
ClientAliveCountMax 3
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server