Add a remote printer over ssh on OSX?
- by GradGuy
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?