Below is the code. ftps server on Azure and its Windows machine with FTPS filezilla server running. Requirement is to connect to ftps server and upload files. FTPS connection is not successful. c
import ftplib
from ftplib import FTP_TLS
ftpss = ftplib.FTP_TLS(host='11.22.333.44', user='xx', passwd='yyy',timeout=80)
ftpss = login()
ftpss.ccc()
ftpss.prot_p()
Getting error
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Traceback (most recent call last):
File "C:\Users\krst\scripts\Item_master_dump_to_ftp\epc_audit\test_ftps.py", line 69, in <module>
ftpss = ftplib.FTP_TLS(host='11.22.333.44', user='abc', passwd='xzy',timeout=80)
File "C:\Users\gyn\AppData\Local\Programs\Python\Python38-32\lib\ftplib.py", line 728, in __init__
FTP.__init__(self, host, user, passwd, acct, timeout, source_address)
File "C:\Users\gyn\AppData\Local\Programs\Python\Python38-32\lib\ftplib.py", line 117, in __init__
self.connect(host)
File "C:\Users\gyn\AppData\Local\Programs\Python\Python38-32\lib\ftplib.py", line 152, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout,
File "C:\Users\gyn\AppData\Local\Programs\Python\Python38-32\lib\socket.py", line 808, in create_connection
raise err
File "C:\Users\gyn\AppData\Local\Programs\Python\Python38-32\lib\socket.py", line 796, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
i'm able to telnet the ftps server ip and port(990). Able to connect the ftps server and see folders using winscp. using winscp tool the File protocol is chosen as "FTP" and encryption as "TLS/SSL Implicit encryption"