CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner: Secure FTP in Explicit Mode: Edit Log


Aug 9, 2017, 10:31 AM

Views: 3116
Secure FTP in Explicit Mode


We use Perl to do basic FTP but need to change this to

’Secure FTP with SLS/TLS – explicit mode’ and in passive mode

Is someone able to give us an example of how to do this please using Net::FTP or Net::FTPSSL . We have tried below and the connection fails to get a response from the server. We have searched google, but can only find 'chilkat' examples which don't seem to be standard perl.

We just need the right syntax to use.

#use Net::FTP;
use Net::FTPSSL;

my $ftp_site = '';
my $ftp_dir = 'in';
my $ftp_user = 'ftpuser';
my $ftp_password = 'ftppassword';
my $ftperr = 0;
my $ftpfile = 'file.csv';

my $ftp = Net::FTPSSL->new($ftp_site, Encryption => EXP_CRYPT) or $ftperr = 1;

if ($ftperr == 0)
$ftp->login($ftp_user, $ftp_password) or $ftperr = 2;

if ($ftperr == 0)
$ftp->cwd($ftp_dir) or $ftperr = 3;

if ($ftperr == 0)

Thank you.


Have you managed to look at this at all. We have found this article that may be useful? node id 868650 on perl monks.

Unfortunately, it mentioned using Net::SSH2 but when we tried CPAN Net::SSH2 that came back with unable to find working library of ssh2. Our provider is gogng to switch us off shortly so our only alternative would be to get a third party product to do the work unless we can crack this.

Hopefully this has been resolved somewhere

Thank you

(This post was edited by ogit2 on Sep 28, 2017, 6:03 AM)

Edit Log:
Post edited by ogit2 (Novice) on Sep 28, 2017, 6:03 AM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives