Add a remote printer over ssh on OSX?

0

I have a printer at my office that is connected to a local network and my linux box at work can see it on the network. However, it is not visible to the outside world.

I was trying to figure out a way to add it on my MacAir and so far have found two options:

1) Using ssh tunnel via CLI: cat file.pdf | ssh user@linuxbox lpr. 2) With Chrome installed on the linux box, using the Google Cloud Print service on the remote box and automator on my MacAir I can add the printer to Cmnd+p dialog box

I like the first method since it does not require Chrome be installed and the second one since it allows to use Cmnd+p inside all applications. I was wondering if there is a way to combine by using automator to run the first command line script.

What about port forwarding? Is it possible to forward the remote CUPS 631 port to a local port and then add the printer normally? What other methods would you recommend?

GradGuy

Posted 2012-07-02T19:58:03.417

Reputation: 123

Are these two descriptions (1) 'my office' and (2) 'at work' describing (a) one and the same place or (b) two different locations? -- Is your MacAir trying to access the printer from the network describing '(1)' or the network describing '(2)' or the location describing '(3) the outside world'? – Kurt Pfeifle – 2012-07-03T13:56:50.080

@KurtPfeifle My bad. Work and Office are the same place, i.e. linux box is connected to same network as the printer. My MacAir, however, is on a separate network (say home) which is "outside world" to the local network at the office. – GradGuy – 2012-07-03T19:08:10.210

Answers

0

3) Install cloudprint on the Linux machine.

Ignacio Vazquez-Abrams

Posted 2012-07-02T19:58:03.417

Reputation: 100 516