Merge pull request #454 from linuxserver/openssh-server-ssh-tunnel-s6v3

switch to hybrid (openssh-server-ssh-tunnel)
This commit is contained in:
aptalca 2022-09-02 20:30:26 -04:00 committed by GitHub
commit a2fbf27cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/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"

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-openssh-server-ssh-tunnel-setup/run