I use this command to make an SSH tunnel to a remote server.
ssh -D localproxy:9999 -C [email protected]
I also made a shell script using expect
command to auto process entire process with also providing password automatically.
Problem is, I have to manually run this script to make a connection when PC starts and also, when PC goes to sleep, this connection breaks and I run this script again.
Is there a way I can make it persistent regardless of the state of machine?