SSH Tunnel

I should list the useful SSH related things right here:

1. Specify connection options
ssh -i sunnybunny.pem -p 222 -vv steve@server.iyyang.com

2. SSH Tunnel
ssh -D 8080 -C -N username@example.com
This would forward all traffic to username@exmaple.com via socks, and we can further set up SOCKS proxy through 127.0.0.1:8080 in browser - to use example.com as a proxy.

3. SSH Tunneling specific port
ssh -L 9000:remoteserver:22 username@proxyserver.com
ssh -p 9000 steve@localhost