473,215 Members | 1,247 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,215 software developers and data experts.

Secure FTP in Python?

Hello,

I'd like to write a small backup utility in Python, which would take
advantage of Secure FTP to upload backup archives. Is there a library
implementing SFTP in Python (something like ftplib)? Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?

Thank you for advice,
Michal
Jul 18 '05 #1
6 6597
d z e k y l wrote:
Hello,

I'd like to write a small backup utility in Python, which would take
advantage of Secure FTP to upload backup archives. Is there a library
implementing SFTP in Python (something like ftplib)? Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?

Thank you for advice,
Michal

I just read a posting about a new library building a secure tunnel for
whatever protocol you want. Or at least that is how I understood it
without looking into it at all :)

So try looking if you can not use stunnel at
http://aspn.activestate.com/ASPN/Coo.../Recipe/213238
+
ftplib

Regards, Ben.

Jul 18 '05 #2
"d z e k y l" <no@nospam.no> writes:
Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?


About anything is less needlessly complicated than FTP.
SSH is often the obvious choice, but WebDAV can also
run over SSL.

--kyler
Jul 18 '05 #3
In article <js***********@jowls.lairds.org>,
Kyler Laird <Ky***@news.Lairds.org> wrote:
"d z e k y l" <no@nospam.no> writes:
Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?


About anything is less needlessly complicated than FTP.
SSH is often the obvious choice, but WebDAV can also
run over SSL.

--kyler


rsync, in particular, is a good fit for what many people
mean by "uploading", and rsync is ssh-savvy.
--

Cameron Laird <Ca*****@Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
Jul 18 '05 #4
Cameron Laird schrieb:
In article <js***********@jowls.lairds.org>,
Kyler Laird <Ky***@news.Lairds.org> wrote:
"d z e k y l" <no@nospam.no> writes:

Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?


About anything is less needlessly complicated than FTP.
SSH is often the obvious choice, but WebDAV can also
run over SSL.

--kyler

rsync, in particular, is a good fit for what many people
mean by "uploading", and rsync is ssh-savvy.


or, on top of rsync-libs, you can run duplicity.
Written in Python :-) and does encryption also
of the backup-store using GPG.
Interesting especially if
other people have root access on the backup-server.
The transfer intself can be done in plain ftp or
ssh/scp.

http://www.nongnu.org/duplicity/

Maybe too far from what OP actually is interested in.

Karl

Jul 18 '05 #5
Karl Scalet wrote:
Cameron Laird schrieb:
Kyler Laird <Ky***@news.Lairds.org> wrote:
Or is there some other
(noncomplicated) way how secure uploading can be implemented in Python?


rsync, in particular, is a good fit for what many people
mean by "uploading", and rsync is ssh-savvy.


or, on top of rsync-libs, you can run duplicity. [...]


Or just use the plain librsync wrapper for Python.

Another option that I use to use SSH tunnels.

<OT>
For some reason the people who contributed the ODBC driver to PostgreSQL
found it necessary to reimplement the PostgreSQL wire protocol instead
of linking to libpq, which would already be SSL enabled. Instead of
buying a commercial SSL-enabled PostgreSQL ODBC driver I decided to just
set up a SSH tunnel to my PostgreSQL server for ODBC access.
</OT>

To tunnel FTP over SSH you'll have to use passive FTP.

I don't remember if it has been mentioned already, but M2Crypto has a
FTP/SSL implementation.

-- Gerhard

Jul 18 '05 #6
"d z e k y l" <no@nospam.no> schreef:
I'd like to write a small backup utility in Python, which would take
advantage of Secure FTP to upload backup archives. Is there a library
implementing SFTP in Python (something like ftplib)? Or is there some
other (noncomplicated) way how secure uploading can be implemented in
Python?


You can do that using pycurl.
<http://pycurl.sourceforge.net/>

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: PiedmontBiz | last post by:
Listening to National Public Radio while reading comp.lang.python. What a life! I just heard a piece on NPR about the security failures of an electronic voting system being developed. I know a...
2
by: Calvin | last post by:
Hi All, Could someone tell me just how secure Python is if compiled to an exe? Is it more or less secure than using some other language? Thanks
21
by: Boris Genc | last post by:
Hi everybody. I was wandering is there a method or a function already implemented in python that supports secure deletion of data? I'm interested in something which is able to securely wipe data...
6
by: andrew blah | last post by:
Hello I have recently released catchmail - a free (BSD license) open source Python utility www.users.bigpond.net.au/mysite/catchmail.htm This script processes in and outbound emails and stores...
1
by: jiba | last post by:
Hi all, I'm currently working on a secure Pickle-like module, Cerealizer, http://home.gna.org/oomadness/en/cerealizer/index.html Cerealizer has a pickle-like interface (load, dump, __getstate__,...
7
by: Laszlo Nagy | last post by:
Hello, I'm trying to create a simple XMLRPC server and a client. It is a small application, but the connection needs to be secure. I would like the client to be as thin as possible. Ideally, the...
8
by: Daniel Crespo | last post by:
Hello everybody, I'm trying to implement a secure xmlrpc server with basis on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496786 recipe. The thing that I'm concerned about is how can...
31
by: Fredrik Tolf | last post by:
Hi List! I was thinking about secure Python code execution, and I'd really appreciate some comments from those who know Python better than I do. I was thinking that maybe it could be possible...
5
by: walterbyrd | last post by:
I honestly don't know. But, I have seen articles and posts about how PHP is terribly insecure. I don't usually see comparisons to other common web languages. I think the big vulnerablity is...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.