Do as follows:
You will probably have to convert the private key from PuTTY to OpenSSH format and place the public key in the same directory with the .pub suffix.use Net::SFTP::Foreign 1.67; use Net::SFTP::Foreign::Backend::Net_SSH2 0.04; my $sftp = Net::SFTP::Foreign->new( host => 'delivery.myserver.com', port => '22', backend => 'Net_SSH2', user => 'ftp_user', key_path => "mytransaction.private +.key"); $sftp->die_on_error("Unable to establish SFTP connection");
In reply to Re^3: Net::SFTP::Foreign is slow
by salva
in thread Net::SFTP::Foreign is slow
by ssubrat77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |