I am stuck in connecting to FTP through a TLS / SSL server (FTPS). I use SimpleFTP library through, I can connect to an FTP server without SSL, but I can not connect FTPS.
This gives me this error on line 2 (ftp.connect),
SimpleFTP received an unknown response when connecting to an FTP server:
220 ---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
and i use below code
SimpleFTP ftp = new SimpleFTP(); // Connect to an FTP server on port 21. ftp.connect("xxx.xxx.xxx.xxx", 21, "username", "pwd"); //getting error at (ftp.connect) above line // Set binary mode. ftp.bin(); // Change to a new working directory on the FTP server. ftp.cwd("web"); ftp.disconnect();
source share