FTPES サーバー (IBM MVS OS/390) に接続しようとしています。
it.sauronsoftware.ftp4j.FTPException [code=530, message= PASS command failed]
ftplibとM2Crypto ftpslibを使用してPythonを使用しようとしましたが、これらはすべて同じエラー「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)))