s6 to run Haproxy and openssh-server
424
# -h to Send a SIGHUP to the process represented by the /service/httpd service directory. Traditionally, this makes web servers reload their configuration file.
s6-svc -h /service/haproxy
# -r to restart by Kill (and automatically restart, if the wanted state of the service is up) the process represented by the /service/sshd service directory - typically the sshd server.
s6-svc -r /service/sshd
# ubuntu passwd
podman exec -it s6ubuntu bash
passwd ubuntu # to set password
# restart process by s6-svc
s6-svc -r /app/s6/haproxy/
# on laptop:
ssh -N -L 127.0.0.1:8080:localhost:8080 -p9222 [email protected]
curl 127.0.0.1:8080
# sshd_config
Match User ubuntu
X11Forwarding yes
AllowTcpForwarding yes
GatewayPorts no # restricts access to only the local machine
PermitOpen localhost:* # restricts access to only the localhost
ForceCommand echo 'ssh -N -L <local_port>:<local_host>:<remote_host>:<remote_port> <usr>@<remote>'
PermitTTY no
Content type
Image
Digest
sha256:fac2963c1…
Size
41.6 MB
Last updated
about 2 months ago
docker pull softlang/s6ubuntu:noble-chisel