Creating an SSH tunnel for SOCKS proxy

Let’s say you are on a trip and want a secure connection while you check your e-mail or you want to have secure access to home computers. Let’s say you work in a corporate environment and you want to access restricted sites. That’s where SSH tunneling comes into play....