Create ssh tunnel
The simplest command to create a ssh tunnel is:
#The following command will create a sock5 proxy on port 7070, and then you can use it in your browser ssh -ND 7070 HOSTNAME
Use Autossh instead of ssh
I prefer to use autossh instead of ssh because it will auto reconnect if the connection lost, Continue reading “HOW TO: Create ssh tunnel at boot time under Ubuntu”