feat(ssh_locker): implement ssh locker helper scripts and configuration for Duo API integration
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#bin/bash
|
||||
|
||||
function usage() {
|
||||
echo "Usage: ssh_locker_helper <user> <action>"
|
||||
echo "Actions:"
|
||||
echo " lock - Lock the SSH locker"
|
||||
echo " unlock - Unlock the SSH locker"
|
||||
}
|
||||
|
||||
if [ -z "$1" ] || [ -z "$2" ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sectool exec bash -c "bin/ssh_locker_helper $1 $2"
|
||||
Reference in New Issue
Block a user