fix(ssh): correct logic to filter ssh client calls
This commit is contained in:
parent
3eda82c89d
commit
f76c9b621f
@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
echo "❌ SSH access to $1:$2 is blocked by company policy."
|
||||
exit 1
|
||||
# Example: block push or connections to some hosts
|
||||
|
||||
if [[ "$*" != *"gitea"* ]]; then
|
||||
echo "❌ Outbound SSH is restricted"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user