How can I FTP file with SSH key instead of password, in Perl?
My local system and remote server are configured with ssh key exchange. and I want to get XML files from the remote system using NET :: FTP packages. Can you suggest a way to transfer files using the Net :: FTP package, but without a password?
+2
kishore
source
to share
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
innaM
source
to share