From f1005cf339b1ed7cebde8e28a44a64f4ba2d1faa Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 27 Nov 2021 20:31:30 -0500 Subject: [PATCH] user-based whitelist for ssh access --- sshd_config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshd_config b/sshd_config index 4cb2b93..58d379e 100644 --- a/sshd_config +++ b/sshd_config @@ -37,6 +37,8 @@ LoginGraceTime 15s MaxAuthTries 2 #MaxSessions 10 +AllowUsers {{ssh_users}} + #PubkeyAuthentication yes # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2