in reply to Re^3: Net::SFTP authentication problem
in thread Net::SFTP authentication problem

Salva, I am having the same issue: Couldn't setstat remote file (fsetstat): SSH_FILEXFER_ATTR_PERMISSIONS However, when I do what you suggest by adding copy_perm => 0, I get this error when my script runs: invalid option(s) 'copy_perm' at /opt/script.pl line 1392 Any ideas why that parameter is not working? Here is my code line: $sftp_connection->put($filepath, $remote_dir.$filename, copy_perm=>0); Thanks! Vic

Replies are listed 'Best First'.
Re^5: Net::SFTP authentication problem
by salva (Canon) on May 21, 2009 at 08:19 UTC
    You are probably using and old version of the module, try upgrading to the last one (1.51 or 1.52_07).

      Where can I get a copy of the latest version, The latest copy on CPAN is Net-SFTP-0.10, by Dave Robbins

      # $Id: SFTP.pm,v 1.35 2005/10/05 06:19:36