feat: add ssh config and blocker shell script

This commit is contained in:
phoenix 2025-04-17 04:56:00 +01:00
parent 444a8150f7
commit 32a1ce5504
2 changed files with 12 additions and 0 deletions

9
ssh/config Normal file
View File

@ -0,0 +1,9 @@
Host github.com
User git
IdentityFile /root/ssh/id_ed25519
IdentitiesOnly yes
StrictHostKeyChecking yes
Host *
ProxyCommand /home/devuser/ssh-blocker.sh %h %p

3
ssh/ssh_blocker.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "❌ SSH access to $1:$2 is blocked by company policy."
exit 1