Restrict ssh access to memebers of group ssh_login

This commit is contained in:
m8in committed 2026-03-03 22:19:27 +01:00
1 parent 88acbffbd0
commit abcb324283
4 files changed
+61 -3

No files matched your search

+3
View File
@@ -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