Date: Thu, 12 Apr 2001 16:19:04 -0500 From: Noah Dunker <ndunker@jccc.net> To: 'Annelise Anderson' <andrsn@andrsn.stanford.edu> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: RE: Passwordless Printing Message-ID: <C18E28011272D41180AD00B0D0496C0801C02160@ns-exch05>
next in thread | raw e-mail | index | archive | help
IF you want do do passwordless printing through an ssh pipe... I did some research: Read sections 2 and 5 in this document to set up ssh using public-key authentication. This way, it won't prompt for a password: http://sysadmin.oreilly.com/news/sshtips_0101.html Then, after you have ssh set up to where you can just type "ssh <hostname>" and log in with no prompts, set netscape up to print to this command: ssh <hostname> 'lpr <lpr options, if needed>' It should work seamlessly. I did this, just to see if it'd work. I got it to work great. Hope this helps Noah Dunker Systems Analyst/Technician Johnson County Community College -----Original Message----- From: Annelise Anderson [mailto:andrsn@andrsn.stanford.edu] Sent: Thursday, April 12, 2001 3:55 PM To: Elliot L. Tobin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Passwordless Printing I think the handbook chapter on printing covers this in detail. But to be brief, you set up in /etc/printcap on A a printer using the rm: capability (remote machine) and the rp: capability (which port on the remote, or B, machine). On B you use /etc/hosts.lpd to tell lpd (which you run on B too) to accept jobs from A. Printing on B from Netscape on A would be possible if you can give Netscape a print command (I think there's an option for this). Annelise On Thu, 12 Apr 2001, Elliot L. Tobin wrote: > I have setup ssh so that I can login to remotehost B from my local > machine, A. Since there is no print server running on A, how can I pipe a > file to machine B, and print from there? > > I realize I could scp file user@b:~/tmp/tmp && ssh user@b -q qpr -q smips > /tmp/tmp ... Is there a simpler way? > > Lastly, how can I do this, print from A onto B, from Netscape? I know > Netscape makes a temporary file before it prints, but I don't know how to > determine what that filename is, or where it is... > > Thanks for any advice you can offer, > > EllioT > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C18E28011272D41180AD00B0D0496C0801C02160>