autossh
Run, monitor and restart SSH connections. Auto-reconnects to keep port forwarding tunnels up. Accepts all ssh flags. More information: <https://www.harding.motd.ca/autossh>.
RUN apt-get update && \
apt-get install -y autossh
RUN apt-get update && \
apt-get install -y autossh
RUN apk add autossh
RUN pacman -S --noconfirm autossh
RUN apt-get update && \
apt-get install -y autossh
RUN dnf install -y autossh
RUN apt-get update && \
apt-get install -y autossh