dotfiles/ssh/template.sshd_config

19 lines
485 B
Plaintext
Raw Normal View History

2022-12-07 22:27:01 -07:00
# vim: set ft=sshdconfig:
# Security - Not optional.
PasswordAuthentication no
AuthenticationMethods publickey
PermitRootLogin no
PermitEmptyPasswords no
# Ipv4 only. Use inet6 for ipv6 only
AddressFamily inet
# Server setup
# Not port 22, to avoid clogging up journalctl from bots
Port 29800
# Prone to spoofing, use ClientAlive* instead
TCPKeepAlive no
# Send a message every 30s, disconnect after an (30s * 120) = 1 hour
ClientAliveInterval 30
ClientAliveCountMax 120