try this, pass in an empty password.
$args{password} = '';
and cross your fingers. you might also want to explicitly specify the path to your identity file. doing these made Net::SSH work for me with keys, never tried SFTP.
In reply to Re: Net::SFTP permission denied but sftp works
by zengargoyle
in thread Net::SFTP permission denied but sftp works
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |