Monday, July 21, 2014

SSH tunnel


SSH tunnel - encrypted data - for public access points or avoiding local firewall rules

1. Custom firmware  Tomato or DD-WRT  on a router connected to the internet
2. SSH client eg. PuTTY
3. SOCKS compatible browser eg. Firefox
4. Dynamic DNS eg. NoIP



Create a file eg. tunelssh.bat with the following line (putty exe must be in same folder or in system_path) :

start /b putty -D 80 -P 22 -ssh xxx.no-ip.biz -l root

start /b - run in background
-D xxx - selected port for the tunnel ( 80 default for HTTP )
-P 22  - ssh listening port on the destination router (default 22)
xxx.no-ip.biz - public dns address or ip
-l root  - username for authenticating on ssh server (optional)

No comments:

Post a Comment