fix(ssh): correct paths
This commit is contained in:
parent
9d06f43323
commit
740af9bf27
@ -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
4
ssh/secure-ssh-wrapper.sh
Normal file → Executable 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 "\$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user