fix(ssh): correct paths

This commit is contained in:
yeti 2025-04-18 19:15:14 +01:00
parent 9d06f43323
commit 740af9bf27
2 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,10 @@
Host github.com Host alps
User git User git
IdentityFile /root/ssh/id_ed25519 IdentityFile /opt/secure/ssh/id_ed25519
IdentitiesOnly yes IdentitiesOnly yes
StrictHostKeyChecking yes StrictHostKeyChecking yes
Port 2222
Host * Host *
ProxyCommand /home/devuser/ssh-blocker.sh %h %p ProxyCommand /opt/secure/ssh/ssh-blocker.sh %h %p

4
ssh/secure-ssh-wrapper.sh Normal file → Executable file
View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if ! /etc/ssh-client/ssh_blocker.sh "$@"; then if ! /opt/secure/ssh/ssh_blocker.sh "$@"; then
echo "❌ Blocked by ssh_blocker.sh" echo "❌ Restricted access"
exit 1 exit 1
fi fi
exec ssh -F /opt/secure/ssh/config -i /opt/secure/ssh/id_ed25519 "\$@" exec ssh -F /opt/secure/ssh/config -i /opt/secure/ssh/id_ed25519 "\$@"