Java 为什么Apache FTPSClient登录失败?

Java 为什么Apache FTPSClient登录失败?,java,login,apache-commons,ftp-client,ftps,Java,Login,Apache Commons,Ftp Client,Ftps,我正在尝试使用ApacheCommonsFTPSClient连接到FTPS站点,如下所示 def ftpsClient = new FTPSClient() ftpsClient.connect('9.14.113.212') def reply = ftpsClient.getReplyCode(); println "Reply is $reply" println "Login is ${ftpClient.login(username, password)}" 我得到的回复代码

我正在尝试使用ApacheCommonsFTPSClient连接到FTPS站点,如下所示

def ftpsClient = new FTPSClient()

ftpsClient.connect('9.14.113.212')

def reply = ftpsClient.getReplyCode();

println "Reply is $reply"

println "Login is ${ftpClient.login(username, password)}"
我得到的回复代码是234,但登录返回false。我确信用户名和密码是正确的,因为当我尝试通过FTPS客户端(如Cyberduck)进行连接时,它会起作用


有没有办法了解登录失败的原因?正如中所建议的,我设置了JVM属性-Djavax.net.debug=all,但它没有显示任何内容。握手似乎没有问题。

您的服务器允许ftp ssh吗?@FreedomPride,我以为ftp ssh是SFTP,而这是FTPS,两种不同的协议,如果我错了,请纠正我。