fix(ssh): correct paths
This commit is contained in:
parent
9d06f43323
commit
740af9bf27
@ -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
|
||||
|
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
|
||||
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 "\$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user