Files
docker-mods-uptime-kuma-tim…/root/etc/cont-init.d/98-ssh-tunnel-config
T
2020-04-01 17:21:41 -04:00

7 lines
261 B
Plaintext

#!/usr/bin/with-contenv bash
# allow tcp forwarding within openssh settings
sed -i '/^AllowTcpForwarding/c\AllowTcpForwarding yes' /etc/ssh/sshd_config
sed -i '/^GatewayPorts/c\GatewayPorts clientspecified' /etc/ssh/sshd_config
echo "TcpForwarding is enabled"