I could've sworn I was able to setup printers by:
- setup first host with lpadmin
- setup additional hosts with for loop: wherein
- stop cups
- copy printers.conf over
- start cups
for host in 10.10.17.{10,11,{13..15},{25..29}};do ssh root@$host ' service cups stop && scp -o StrictHostKeyChecking=no root@10.10.17.12:/etc/cups/ppd/Lab1_Print2.ppd /etc/cups/ppd/ && scp -o StrictHostKeyChecking=no root@10.10.17.12:/etc/cups/printers.conf /etc/cups/ && service cups start && lpoptions -d Lab1_Print2 && echo printer installed on $(hostname) && echo default printer is $(lpstat -d) && echo printing test page .... && lp<<<TEST_PAGE_FROM_$(hostname)' done
Here's the output I get:
root@10.10.17.10's password:
* Stopping Common Unix Printing System: cupsd
...done.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
Is this not possible, or, has some part of the remote environment changed? Maybe too much Dust-Off in here.
Incidentally, I have an expect script, fabric and rex files for this stuff but tried to one-off this and am pretty sure this worked before.