Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sftp -o Port=xxx username@ip_address
- # connects to SFTP
- LOGGER.debug('Connecting to SFTP server...')
- sftp = ftplib.FTP_TLS()
- sftp.connect(configs.ftp_host, configs.ftp_port, timeout=60)
- sftp.login(configs.ftp_username, configs.ftp_password)
- #sftp.prot_p() # enable secure connection
- LOGGER.debug('Connected to SFTP server.')
- File "/opt/itinerator/pyre/lib/python2.6/socket.py", line 406, in readline
- data = self._sock.recv(self._rbufsize)
- socket.timeout: timed out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement