In all large corporations, there is a pervasive fear that someone, somewhere is having fun with a computer on company time. Networks help alleviate that fear.
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)
9100
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.
Apply Settings
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
Save Session
Set the Printer up as APt/Socket JetDirect
IP address (localhost):9100
Set the Drivers to those for your Printer
Save
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 the collective work of the HackThisSite staff, licensed under a CC BY-NC license.
We ask that you inform us upon sharing or distributing.