Add a remote printer over ssh on OSX?

Posted by GradGuy on Super User See other posts from Super User or by GradGuy
Published on 2012-07-02T19:58:03Z Indexed on 2012/07/02 21:18 UTC
Read the original article Hit count: 341

Filed under:
|
|
|

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?

© Super User or respective owner

Related posts about osx

Related posts about ssh