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

Probably, the server software (WS_FTP-SSH_6.1.1) does not support SFTP setattr operation.

Try dissabling attribute copy on the put method:

$sftp->put($local, $remote, copy_perm => 0);

Replies are listed 'Best First'.
Re^4: Net::SFTP authentication problem
by Anonymous Monk on May 20, 2009 at 17:47 UTC
    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
      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