fix(ssh): correct logic to filter ssh client calls

This commit is contained in:
phoenix 2025-04-17 11:58:35 +01:00
parent 3eda82c89d
commit f76c9b621f

View File

@ -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