SSH tunnel broken
I've set up ssh tunnels to the mysql server from one machine to the other. It works fine but after a few days the connection breaks and I have to reissue the command. How can I set up a ssh tunnel to last for ever.
Here's my command which I run as root. sshtun is the user I open the tunnel as..
su - sshtun -c 'ssh -N -L 6306:localhost:3306 xx.xx.xx.xx &'
|