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 6 6613
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.
"d z e k y l" <no@nospam.no > writes: Or is there some other (noncomplicate d) 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
In article <js***********@ jowls.lairds.or g>,
Kyler Laird <Ky***@news.Lai rds.org> wrote: "d z e k y l" <no@nospam.no > writes:
Or is there some other (noncomplicat ed) 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
Cameron Laird schrieb: In article <js***********@ jowls.lairds.or g>, Kyler Laird <Ky***@news.Lai rds.org> wrote:
"d z e k y l" <no@nospam.no > writes:
Or is there some other (noncomplica ted) 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
Karl Scalet wrote: Cameron Laird schrieb: Kyler Laird <Ky***@news.Lai rds.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
"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.sourcefo rge.net/>
--
JanC
"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 voting system could be developed in python. I
am working on a simulator myself to run via the web (a personal project only)
Are there any features which would make python a viable alternative to develop
a real voting system for use in the US? Why...
|
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
|
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 (from
single file to bunch of MB's), and that should run both on Linux and
Windows.
I tried on google, but I hadn't found anything useful to me.
|
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 them to a
database.
The source code is here:
http://www.users.bigpond.net.au/mysite/current/catchmail.py
|
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__,
__setstate__,...), however it requires to register the class you want
to "cerealize", by calling cerealizer.register(YourClass).
Cerealizer doesn't import other modules (contrary to pickle), and the
only methods it may call are...
| |
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 client should only
require the basic python library, nothing else. I found many examples on
the net. But I could not find secure ones (except twisted/xmlrpc, but I
would like to use the basic python lib on the client side, if possible).
I know...
|
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 I get/create rapidly the
..pem files (the key and cert).
Any help?
Thanks
|
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 to load and run untrusted
Python code, simply by loading it in a module with a modified version of
__builtins__. Without any reachable function that do unsafe operations,
code running from there shouldn't be able to do evil things.
|
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 supposed to be code injections.
Another security issue would be having code stolen, but I think that
PHP can be protected from that.
Obviously, I don't know a lot about it.
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |