From 740af9bf2727afa5b166e60da683cee7e3d7b86c Mon Sep 17 00:00:00 2001 From: yeti Date: Fri, 18 Apr 2025 19:15:14 +0100 Subject: [PATCH] fix(ssh): correct paths --- ssh/config | 7 ++++--- ssh/secure-ssh-wrapper.sh | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) mode change 100644 => 100755 ssh/secure-ssh-wrapper.sh diff --git a/ssh/config b/ssh/config index ea73d12..ad15423 100644 --- a/ssh/config +++ b/ssh/config @@ -1,9 +1,10 @@ -Host github.com +Host alps User git - IdentityFile /root/ssh/id_ed25519 + IdentityFile /opt/secure/ssh/id_ed25519 IdentitiesOnly yes StrictHostKeyChecking yes + Port 2222 Host * - ProxyCommand /home/devuser/ssh-blocker.sh %h %p + ProxyCommand /opt/secure/ssh/ssh-blocker.sh %h %p diff --git a/ssh/secure-ssh-wrapper.sh b/ssh/secure-ssh-wrapper.sh old mode 100644 new mode 100755 index d718b6f..afed73e --- a/ssh/secure-ssh-wrapper.sh +++ b/ssh/secure-ssh-wrapper.sh @@ -1,6 +1,6 @@ #!/bin/bash -if ! /etc/ssh-client/ssh_blocker.sh "$@"; then - echo "❌ Blocked by ssh_blocker.sh" +if ! /opt/secure/ssh/ssh_blocker.sh "$@"; then + echo "❌ Restricted access" exit 1 fi exec ssh -F /opt/secure/ssh/config -i /opt/secure/ssh/id_ed25519 "\$@"