I'm using ChilkatDotNet2.dll to connect to a sftp server, the connection to the server is established but the authentication fails when it is run automatically. if we run the script manually it works.
here is the part of the script I'm having trouble with.
$sftp is a new Chilkat.SFtp object. The other variables have hardcoded values earlier in the script and contain server information and user login/pass.
As I said, there is an automated task manager that executes scripts at certain times of the day automatically, and when they are automatically run, this script fails to pass the $sftp.AuthenticatePw check, but if I run the script manually, it works. Can anyone point me in the right direction as to what might be wrong?
asked Apr 17 '14 at 15:33
usually a permissions problem, make sure the scheduled job User has appropriate permissions and that the ports are accessable.
answered Apr 18 '14 at 11:45