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