ssh -L 8080:localhost:631 your.host.athome
Originally Posted by metalfiiish
though as I am not at home right now I can't open port 80 for me to do that externally but if I keep having issue's getting this to work before I go home then I will try that out when I can! (currently I only have ssh allowed through my router to my box)
will open an ssh tunnel from your current machine to your box at home. It other words, it connects to your.host.athome, and redirects any traffic to itself at port 631, hence localhost:631.
After giving this command in a terminal window, start up your web browser on the machine at work, and got to
You'll end up in your.host.athome:631.
Confusing as hell. If you want to access another host in your home network and you have to pass thru a gateway the ssh tunnel is like this:
ssh -L 8080:xotherhost:631 your.host.athome
Still you have to make the connection on the machine you are currently working on at work, leave the terminal alone and use your web browswer to localhost:8080
You can use the open ssh connection you have at that moment to edit the cups.conf file. WIthout the proper settings port 631 won't work of course.