Wednesday, April 24, 2013

network congested to a specific server? try ssh tunelling

SSH tunnelling basically open up a proxy through your localhost on a specific port,
and redirect the traffic through your ssh server to the destination domain.

#Run this SSH tunnel
ssh -f ssh-username@ssh-server.com -L 2000:yourdomain.com:80 -N
#edit hosts file to point a domain to a localhost
vi /etc/hosts (/private/etc/hosts - on MAC OS)
127.0.0.1 www.yourdomain.com
#open this in browser
http://www.yourdomain.com:2000/


No comments: