fix(ssh): correct paths
This commit is contained in:
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 "\$@"
|
||||
|
Reference in New Issue
Block a user