On the remote server, I use
lp command to print documents. I can connect to this server through SSH.
How can I print a file directly from my local computer using that printer?
For more comfort, have a look at this guy's script that gives CUPS a
Depending on which printing system is running on the server, you may be able to run the same
For example, CUPS, which is the printing system of OSX and the most common on Linux nowadays, listens on port 631 (that's the standard IPP port). LPD, the traditional unix printing protocol, listens on port 515.
So if the printing system is CUPS, install a CUPS client on your local machine, and try
If you find a working configuration, put the SSH command above in a session startup script, or define a host alias with the appropriate