1
我试图连接FTPES服务器(IBM MVS OS/390),与ftp4j努力当我使用他们的示例代码,当我得到PASS未能例外使用ftp4j使用FTPES到IBM MVS操作系统连接/ 390服务器
it.sauronsoftware.ftp4j.FTPException [code=530, message= PASS command failed]
我使用Python以及使用FTPLIB以及M2Crypto ftpslib,所有这些返回相同的错误尝试“530 PASS命令失败”
任何线索?
def connect(self):
try:
ctx = SSL.Context('sslv23')
self.ftps = ftpslib.FTP_TLS(ssl_ctx=ctx)
self.ftps.connect(self.host,self.port)
self.ftps.auth_tls()
self.ftps.set_pasv(1)
self.ftps.sendcmd('USER %s' % self.username) # '331 Please specify the password.'
self.ftps.sendcmd('PASS %s' % self.password)
#self.ftps.login(self.username, self.password)
self.ftps.prot_p()
print('logged in sucessfuly')
self.ftps.cwd('XXXX')
except Exception,e:
self.ftps = None
self.logger.warning("Exception raised while connecting FTPS server, %s" % ("*** Caught exception: %s: %s" % (e.__class__, e)))