use Net::SFTP::Foreign; my $host = 'server'; my $sftp = Net::SFTP::Foreign->new($host); $sftp->get("remote_file", "local_file");