File size: 348 Bytes
73ed481 d1d05c9 73ed481 d1d05c9 895061f d1d05c9 407e06e d1d05c9 73ed481 407e06e d1d05c9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/bin/bash
set -e
echo "Starting SSH/SOCKS5 Gateway..."
# Ensure SSH host keys exist
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
ssh-keygen -A
fi
# Start SSH
/usr/sbin/sshd -D -e -f /etc/ssh/sshd_config &
echo "SSH server started."
# Start Dante
/usr/sbin/danted -D &
echo "Dante SOCKS5 server started."
# Stay alive
exec tail -f /dev/null |