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"); }
In reply to AUTH SSL/TLS required prior to authentication by sreegouthamreddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |