#!/bin/bash
HTTPS_PORT=8080
SSHPORT_INT=2223
SSHPORT=2222
PROXY_HOST=aquila.tetras-libre.fr
while true; do
/usr/bin/ssh -i /root/.ssh/id_rsa -N -R ${HTTPS_PORT}:localhost:443 -R ${SSHPORT_INT}:localhost:22 -o "ExitOnForwardFailure yes" -o "StrictHostKeyChecking no" -o "ServerAliveInterval 60" sshuser@${PROXY_HOST} -p ${SSHPORT}
echo "Ssh failed $?"
sleep 5
done