Skip to content
Snippets Groups Projects
Commit 10438791 authored by David Beniamine's avatar David Beniamine
Browse files

Update reverseSSHproxy.sh

parent 9c192559
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,11 @@ SSHPORT_INT=2223 ...@@ -4,7 +4,11 @@ SSHPORT_INT=2223
SSHPORT=2222 SSHPORT=2222
PROXY_HOST=aquila.tetras-libre.fr PROXY_HOST=aquila.tetras-libre.fr
while true; do while true; do
set -x
/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} /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}
set +x
echo "Ssh failed $?" echo "Ssh failed $?"
# just in case this is blocking
/usr/bin/ssh-keygen -f "/root/.ssh/known_hosts" -R "[aquila.tetras-libre.fr]:2222"
sleep 5 sleep 5
done done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment