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:
Post a Comment