Dear Monks!
I have a CGI script that needs to put a file on another server. This used to be done via FTP but now the target server has changed, and the new one doesn't run a ftp daemon.
Therefor I would like to use secure copy and found Net::SCP on CPAN. Just what I need... but of course it doesn't take passwords but relies on public key authentication. Ok, that's a good thing, after all you really shouldn't put those passwords into your script.
But now this script doesn't run as a normal user, but as user nobody,apache or whatever, so my question ist: Where do I put that secret key??? Or do I have to take a different approach?
Does anyone have any experience with this and could point me in the right direction?
Thanks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.