From 32a1ce55043b91ada36ed21481edbb0f18f0cc9c Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 17 Apr 2025 04:56:00 +0100 Subject: [PATCH] feat: add ssh config and blocker shell script --- ssh/config | 9 +++++++++ ssh/ssh_blocker.sh | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 ssh/config create mode 100644 ssh/ssh_blocker.sh diff --git a/ssh/config b/ssh/config new file mode 100644 index 0000000..ea73d12 --- /dev/null +++ b/ssh/config @@ -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 diff --git a/ssh/ssh_blocker.sh b/ssh/ssh_blocker.sh new file mode 100644 index 0000000..3968c24 --- /dev/null +++ b/ssh/ssh_blocker.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "❌ SSH access to $1:$2 is blocked by company policy." +exit 1