Update ssh configs for admins login.

This commit is contained in:
Darren 'Tadgy' Austin 2026-04-28 20:28:30 +01:00
commit 8558e9f74c
4 changed files with 31 additions and 5 deletions

View file

@ -3,15 +3,20 @@ Include /etc/ssh/sshd_config.d/*.conf
Port 25422
AcceptEnv LANG LC_*
GSSAPICleanupCredentials yes
GSSAPIStrictAcceptorCheck yes
LoginGraceTime 30
MaxStartups 5
PermitRootLogin prohibit-password
StreamLocalBindUnlink yes
Subsystem sftp internal-sftp
UsePAM yes
X11Forwarding no
Match Group "System Admins"
Match Group "SLACKWAREUKINT\systems' admins"
AuthenticationMethods publickey
#,password publickey,keyboard-interactive
AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys
AuthorizedKeysCommandUser root
AuthenticationMethods "publickey"
# ,password"
GSSAPIAuthentication yes
PAMServiceName sshd-sysadmins