Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82255 > unrolled thread

Ftplib.FTP_TLS Ports

Started byEric <seag33k@gmail.com>
First post2014-12-09 20:13 -0800
Last post2014-12-09 20:13 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Ftplib.FTP_TLS Ports Eric <seag33k@gmail.com> - 2014-12-09 20:13 -0800

#82255 — Ftplib.FTP_TLS Ports

FromEric <seag33k@gmail.com>
Date2014-12-09 20:13 -0800
SubjectFtplib.FTP_TLS Ports
Message-ID<mailman.16788.1418184828.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

We are trying to open our firewall but it keeps failing.  The docs state
that the default port is 21 and we've opened port 21.  I've ran tcpdump on
the box while running the script.  I see a destination port of 21, but
there seems to be random destination ports such as 2320 which follow.  If
we open the firewall to allow all traffic, the script works.  Here is a
snip of what I have for the ftp portion.  Any ideas would be helpful.

import ftplib

session = ftplib.FTP_TLS('xxx.ftp.com','user','password')
file = open('Bkup.tar.gz','rb')
session.storbinary('STOR Bkup.tar.gz', file)
file.close()
session.quit()

Thanks!
Eric

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web