47 lines
783 B
Plaintext
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
|