Pinggy CLI has auto reconnection built in. Download the Pinggy CLI from here and run the following command:
./pinggy -p 443 -R0:localhost:8000 <token>@pro.pinggy.io
In Mac OS or Linux, use the following script to enable auto reconnection.
# pinggy.sh
while true;
do ssh -p 443 -o ServerAliveInterval=60 -R0:localhost:8000 <token>@pro.pinggy.io;
sleep 2;
done
For Windows, use the following script:
# pinggy.bat
FOR /L %N IN () DO ssh -p 443 -o ServerAliveInterval=60 -R0:localhost:8000 <token>@pro.pinggy.io