Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

cups: forward printing to port 6631 through ssh tunnel. "cups over ssh"

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
egerlach
Posts: 2
Joined: 2021-11-24 19:50

cups: forward printing to port 6631 through ssh tunnel. "cups over ssh"

#1 Post by egerlach »

I want to print to remote linux-PC (raspberry) with cups using a existing ssh tunnel:

1. forward port 6631 to remote machine port 631 with running cups (through existing revers tunnel):

Code: Select all

ssh -p 2241 -L 6631:localhost:631 root@localhost
2. print to localhost:6631 , job is queued by local cups, from printers.conf:

Code: Select all

[...] DeviceURI ipp://localhost:6631/brother5250 [...]
3. but /var/log/cups/error_log:

Code: Select all

Set job-printer-state-message to "target printer not exist!", current level=ERROR
4. Check: Port 6631 on local machine is forwarded:

Code: Select all

#telnet localhost 6631 Trying ::1... Connected to localhost. Escape character is '^]'.
remote cups (service cups restart):
Listen *:631
cups on local machine obviously can't communicate with cups on remote machine. Any ideas?

tia Eckard

Post Reply