cmburns has asked for the wisdom of the Perl Monks concerning the following question:
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!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using SCP from CGI
by kappa (Chaplain) on May 07, 2002 at 14:29 UTC | |
by cmburns (Acolyte) on May 07, 2002 at 14:45 UTC | |
|
Re: Using SCP from CGI
by cfreak (Chaplain) on May 07, 2002 at 16:15 UTC | |
|
Re: Using SCP from CGI
by yodabjorn (Monk) on May 07, 2002 at 20:07 UTC | |
|
Re: Using SCP from CGI
by samtregar (Abbot) on May 07, 2002 at 18:54 UTC |