Monday, February 1, 2010

Printing on a remote printer through SSH forwarding

Scenario:
The printer I want to print to is on a subnet and my laptop is connected to a wireless network which is outside of that subnet. The only way to access any machine on the subnet from my laptop is through SSH to the gateway server.

Steps:

Forward ports:
  • Windows+Putty: Forward local port 9100 to 172.19.0.28:9100 (This is IP address of our pritner, select the IP address of your printer).
    Now connect through Putty to the gateway machine.
  • Linux: ssh -L 9100:172.19.0.28:9100 username@gateway_machine


Laptop with Windows (I have listed the printer which we have, you should select driver for your printer):
  • Control Panel\Hardware and Sound\Devices and Printers
  • Add a Printer
  • Add a Local Printer
  • Create a new port
  • Type of port: Standard TCP/IP Port
  • Hostname or IP Address: localhost , Port name=PrintSrv
  • Select Custom Printer
  • Select driver for 'Ricoh Aficio SP 8100 DN PCL'
You should be able to print from your Windows laptop.

I don't know how to do the later part of the setup on Linux. If you know, please let me know and I will post here.

2 comments:

  1. The matter that you provide is worth our time and energy. club flyer

    ReplyDelete
  2. This difference of professional letterhead printing services is utilised primarily for administrative and transportation germane purposes. Printing VIP

    ReplyDelete