470,643 Members | 1,356 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,643 developers. It's quick & easy.

Put a file on an ftp server over ssl

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

Jul 19 '05 #1
4 1325
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

Jul 19 '05 #2
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

Jul 19 '05 #3
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

Jul 19 '05 #4
Have a look at Putty's pscp and PySCP...

http://www.chiark.greenend.org.uk/~sgtatham/putty/
http://py.vaults.ca/apyllo.py/990075...97684.69935243

Rick

Lars wrote:
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


Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Lamberti Fabrizio | last post: by
1 post views Thread by BW | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.