Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There is a CUPS server beyond a firewall and I'd like to use it's printers. I have ssh access to computers that can access the CUPS server, and can get at the servers web interface by forwarding say port 1631. I cannot forward port 631 as I've not got root access to anything on the servers network.

In Ubuntu's 'Printing' control panel, I can enter the address of a server, but I've not been able to connect through the forwarded port (localhost:1631, which is forwarded to the remote CUPS server's 631 port).

Any ideas?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Your best bet may be to treat the remote print spooler as a plain IPP host and create local queues that forward to the remote printers.

Assuming you have created an ssh tunnel forwarding requests to the local port 1631 to the remote system's port 631, try adding a new network print queue locally with the following device URI:

ipp://localhost:1631/printers/$remote_queue

Where $remote_queue is remote queue name. If CUPS doesn't know about the remote printer model but it had been set up with an appropriate PPD file, you can retrieve that PPD with the following command:

wget http://localhost:1631/printers/$remote_queue.ppd

After adding the local printer queue, click the Change... button next to Make and Model in the queue's properties window and follow the prompts to use the PPD.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.