#!/bin/bash
RUNNING=`ps aux | grep "ssh -i /root/.ssh/id_rsa -L .:880:localhost:80 " | grep -v grep | wc -l`
if [ $RUNNING -eq 0 ]; then
screen -dm ssh -i /root/.ssh/id_rsa -L *:880:localhost:80 -L 4443:www.google.com:443 -R 880:localhost:80 username@yourvpsdomain
fi
Source: https://blog.zencoffee.org/2013/12/setting-static-ssh-tunnel/