2008/9/22 Vyacheslav Karamov <[EMAIL PROTECTED]>:
> Dermot пишет:
>>
>> Hi,
>>
>> I installed Net::SCP as I was reminded of the module in a recent post.
>>
>> I need to copy files from one server to another. I generated ssh-keys
>> for a user and I can use
>>
>> scp  test.txt myserver:/home/somedude/mytest.txt
>>
>> without passwords when I su to that user but when I run the script as
>> myself it doesn't work.
>>
>> # $DEBUG = 1;
>> scp /home/somedude/fo.txt [EMAIL PROTECTED]:/home/images/my170px.jpg
>> 256  lost connection
>>
>>
>
> You should generate ssh keys for the user which runs your script.

The script would run as the httpd user and that account is set as
/sbin/nologin. My gut feeling is that it would be considered bad
practise to enable a shell on this account and install ssh keys for
it.

Does anyone have an opinion on that?
Thanx,
Dp.

Reply via email to