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 "\$@"