I don't know what a .PEM file is, but here's what I'd do:
1. Have them set up an unprivileged login, just for the file transfers
2. Use ssh-keygen (read the manpage) to create a public/private key pair for the user on your end
3. In a sub-directory of their user's login directory, named .ssh have them rename a copy of your public key(e.g. id_rsa.pub) to authorized_keys. Set the permission on authorized_keys = o:rw (600).
 
You should then be able to run sftp in batch mode for <their user>@<their machine>; e.g.:
sftp -b <batchfile> <their user>@<their machine>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Garrett P. Taylor
Sent: Wednesday, October 26, 2005 11:43 AM
To: [email protected]
Subject: [RLUG] Passwordless SSH

I’m working with the bank trying to set up some automated file transfers using SCP/SFTP.

 

The biggest problem was prompting for password making scripting the whole thing, well, impossible. I got them to send me a .PEM file which has a private and public key. How do I make OpenSSH use it? I’m working from cygwin at the moment if that matters. I can do it from Linux if needed and will probably switch there eventually anyway since the cron daemon seems to work a lot better than Windows’s stupid task schedule thing.

 

Thanks,
Garrett Taylor
IS Director
Western Title Company
(775) 324-6930 xt. 2252
[EMAIL PROTECTED]
http://www.westerntitle.net

 

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient (s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender via reply email and destroy all copies of the original message.

_______________________________________________
RLUG mailing list
[email protected]
http://lists.rlug.org/mailman/listinfo/rlug

Reply via email to