"No exceptional circumstances whatsoever, whether a state of war or a threat of war, internal political instability, or any other public emergency, may be invoked as a justification of torture." -- U.N. Convention Against Torture
I was interested in Printing to my Printer at home over the internet. So I went On-Line and found articles on how to do just that. However none of them worked and almost none of them would print directly to the printer. They wanted me to print to file and send the print job to a computer that is sharing a printer as a lpr request. That is not practical. So I set up my Router and Putty to connect to one another in the following manner:
I have a WRT310N running DD-WRT and a HP c6200 Printer.
I set my Router up with these settings:
Port Forward 9100 (Printer IP) 9100
Port Forward 9100 (Ip of Computer you are trying to print from)
Enable the Port Forwards and Apply Settings
I know that the second setting seems un-needed because the
reverse connection should not need to be forwarded but it
does not work right without it.
I set up My Putty Client with these Settings:
I set the host IP to my Modems IP as seen by the web
I set the username to root
I set the ssh keys after I had made the key pair you could use
the less secure password option however I would not do so.
I set the Tunnels:
Local L9100 (IP of Printer):9100
Remote R9100 (Localhost):9100
Set the Printer up as APt/Socket JetDirect
IP address (localhost):9100
Set the Drivers to those for your Printer
Open Putty to the Session you saved:
Print What Ever You Want Over ssh!
Cast your vote on this article 10 - Highest, 1 - Lowest
Comments: Published: 3 comments.
HackThisSite is is the collective work of the HackThisSite staff, licensed under a CC BY-NC license.
We ask that you inform us upon sharing or distributing.