Put a file on an ftp server over ssl

D

Daniel Santa Cruz

Hello all!

I have been troubled for the past couple of days trying to write a
simple script that sends a file to an ftp server. It used to be the
easiest thing in the world, but now the server has changed to a ftps
(ftp over ssl) server. All of the sudden, the world has come to a
crawling stop.

Seems that M2Crypto would maybe do the trick, but I can't buy the thing
(they won't pay for it). Other than suggesting projects, does any one
have actuall working code to do something like this? My, it seems like
it should be VERY simple, but it has become a nightmare.

Oh do I wish...

f = ftps.connect('username', 'password', port)
ftps.put(localFilePath)

Done!

Thanks for any help!

Daniel
 
D

Daniel Santa Cruz

I looked briefly at this option, but it seems to me that I would have
to learn a whole architecture just to put a file on an ftp server.
Seems like a bit much, don't you think?

Daniel
 
D

Daniel Santa Cruz

Sorry Jp,

I was using the google client, and it does not automagically put reply
marks on the message one is replying too. I'm just a bit frustrated
that such a seemingly simple task to get so complicated very easily. I
do appreciate your input! Just wish someone had already done it and
shared the little jewel with us.

Daniel
 
L

Lars

Daniel,

Why don't you just use the 'sftp' command line program, it's available
for all unixes and I bet you can find a build for windows to? Then you
could just do an os.system(..) and be done with it.

Cheers!
Lars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top