I use this command to make an SSH tunnel to a remote server.
ssh -D localproxy:9999 -C tcx0@111.222.333.444
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?
sudo
to get it to run as the user when running fromrc.local
. – muru Apr 11 '15 at 08:17