News for hackers. Stuff that matters.
Re:Showoff by tekacs on Wednesday April 20, 2011 @02:11PM (#2467684)
Hmm I've been using the following: https://gist.github.com/932137 for some time now - it's just a bash function which lets me type:

$ show 3000 test

and get http://test.tekacs.com/ -> port 3000 on my computer using just SSH, assuming you have root access to the server (which you would need to set up forwarding on port 80 anyway...)

$ ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"

being the functional line...

Re:Showoff by aliukani on Wednesday April 20, 2011 @03:49PM (#2468084)
Thanks for this!