FTPES - FTP over explicit TLS/SSL in Python

后端 未结 4 644
一个人的身影
一个人的身影 2020-12-03 01:54

I need a python client to do FTPES (explicit), does anyone has experience with any python package that can do this.

I am not able to do this in python, but can conne

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-03 02:21

    For me this worked: (login after auth). Taken from Nullege. They seem to be tests for ftplib.

    self.client = ftplib.FTP_TLS(timeout=10)
    self.client.connect(self.server.host, self.server.port)
    
    # enable TLS
    self.client.auth()
    self.client.prot_p()
    
    self.client.login(user,pass)
    

提交回复
热议问题