From e8331a12e22b90f325cf5fea156450ea4ab5869b Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 17 Apr 2025 10:00:37 +0100 Subject: [PATCH] feat(ssh): secure_ssh_wrapper script for git --- ssh/secure-ssh-wrapper.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ssh/secure-ssh-wrapper.sh diff --git a/ssh/secure-ssh-wrapper.sh b/ssh/secure-ssh-wrapper.sh new file mode 100644 index 0000000..9584fff --- /dev/null +++ b/ssh/secure-ssh-wrapper.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if ! /etc/ssh-client/ssh_blocker.sh "\$@"; then + echo "❌ Blocked by ssh_blocker.sh" + exit 1 +fi +exec ssh -F /opt/secure/ssh/config -i /opt/secure/ssh/id_ed25519 "\$@"