How can I FTP file with SSH key instead of password, in Perl?
1 answer
I think you are looking for Net :: SFTP .
my $sftp = Net::SFTP->new( 'some_host_name', { user => 'your_user_name' } );
$sftp->get( '/path/to/xml/file', '/local/path/to/xml/file' );
+4
source to share