mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 19:01:30 +02:00
Restrict ssh access to memebers of group ssh_login
This commit is contained in:
@@ -15,6 +15,9 @@ function isCoreDefinition() {
|
||||
echo "${1:?"Missing first parameter FILE"}" | grep -F '/root/.ssh/authorized_keys' &> /dev/null \
|
||||
&& return 0
|
||||
|
||||
echo "${1:?"Missing first parameter FILE"}" | grep -F '/etc/ssh/sshd_config.d/AccessRestriction.conf' &> /dev/null \
|
||||
&& return 0
|
||||
|
||||
echo "${1:?"Missing first parameter FILE"}" | grep -F '/home/jenkins/.ssh/authorized_keys' &> /dev/null \
|
||||
&& return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user