mirror of
https://github.com/tildeclub/tilde.club.git
synced 2026-10-25 00:55:38 +00:00
20 lines
679 B
Plaintext
20 lines
679 B
Plaintext
# New-host baseline. Install only after key login and sudo work.
|
|||
|
|
# The actual main sshd config must include this file at global scope.
|
||
|
|
# Check first-value precedence and verify sshd -T before reloading.
|
||
|
|
PermitRootLogin no
|
||
|
|
PubkeyAuthentication yes
|
||
|
|
PasswordAuthentication no
|
||
|
|
KbdInteractiveAuthentication no
|
||
|
|
GSSAPIAuthentication no
|
||
|
|
HostbasedAuthentication no
|
||
|
|
UsePAM yes
|
||
|
|
AuthenticationMethods publickey
|
||
|
|
PermitEmptyPasswords no
|
||
|
|
PermitUserEnvironment no
|
||
|
|
X11Forwarding no
|
||
|
|
AllowAgentForwarding no
|
||
|
|
AllowTcpForwarding no
|
||
|
|
PermitTunnel no
|
||
|
|
|
||
|
|
# Optional MFA belongs in a later Match block in the main configuration.
|
||
|
|
# See docs/ssh.md. Leave the distribution's subsystem configuration in place.
|