sreegouthamreddy has asked for the wisdom of the Perl Monks concerning the following question:
I am using a perl script to Connect to an FTP Server in my network from where i ahve to downlaod the files. But the Login Module is throwing an error as below "Invalid sequence of commands (AUTH SSL/TLS required prior to authentication)" Below is the Code Snippet
use Net::FTP; $strFTPServer = <<sever>>; $strFTPUserName = <<username>>; $strFTPPassword = <<Password>>; newFTPConn(); sub newFTPConn() { $ftp = Net::FTP->new("$strFTPServer", Passive => 0, Debug => 0) || + retryModule("Could not connect to FTP Server $strFTPServer: $!"); $logger->info("Successfully connected to FTP Server $strFTPServer" +); $ftp->login("$strFTPUserName","$strFTPPassword") || errorModule("U +serName or Password incorrect for user $strFTPUserName: ".$ftp->messa +ge,1); $logger->info("Successfully logged into $strFTPServer"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: AUTH SSL/TLS required prior to authentication
by noxxi (Pilgrim) on Jan 16, 2016 at 22:04 UTC | |
|
Re: AUTH SSL/TLS required prior to authentication
by 1nickt (Canon) on Jan 16, 2016 at 01:15 UTC |