Add custom settings for the OpenSSH server (sshd)

This commit is contained in:
Luca Pellegrini 2023-12-22 23:44:21 +01:00
parent 76d400d7d2
commit aa8c6bf09a
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Custom settings for the OpenSSH server (sshd)
# Options specified here will overwrite default settings for the OpenSSH server
Port 2200
HostKey /etc/ssh/ssh_host_rsa_key
PermitRootLogin prohibit-password
PasswordAuthentication no
PubkeyAuthentication yes
AuthenticationMethods publickey
X11Forwarding no
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server