feat: add ssh config and blocker shell script
This commit is contained in:
parent
444a8150f7
commit
32a1ce5504
9
ssh/config
Normal file
9
ssh/config
Normal 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
3
ssh/ssh_blocker.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
echo "❌ SSH access to $1:$2 is blocked by company policy."
|
||||
exit 1
|
Loading…
x
Reference in New Issue
Block a user