问题 Below code I'm trying to connect SFTP host using FTPSClient . Instead of FTP client, I'm using FTPSClient to connect. But I'm facing issue to connect. public static void main(String[] args) throws SocketException, IOException { String host ="sftphost.com"; String user = "abc"; String pwd = "pwd" final FTPSClient ftp = new FTPSClient(); System.out.println("host:"+host); ftp.connect(host,22); int reply = ftp.getReplyCode(); ftp.login(user, pwd); } 回答1: FTPS is not SFTP. You cannot use Apache