Initial commit

This commit is contained in:
Maurice
2025-08-20 17:11:32 +02:00
commit 8c2f438749
21 changed files with 392 additions and 0 deletions

25
services/ssh/sshd_config Normal file
View File

@@ -0,0 +1,25 @@
# SSHD config. See https://man.openbsd.org/sshd_config
# https://hackviser.com/tactics/hardening/ssh
# Protocol 2 is more secure
Protocol 2
# No root login or passwords
PermitRootLogin no
PasswordAuthentication no
AuthenticationMethods publickey
# Allow tunneling, but not with option R (remote)
AllowTcpForwarding local
GatewayPorts yes
# override default of no subsystems
Subsystem sftp internal-sftp
# Only allow users that are listed
AllowUsers admin
# Only allow secure ciphers
KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,mlkem768x25519-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com
MACs hmac-sha2-256,hmac-sha2-512