wimleers / fileconveyor

File Conveyor is a daemon written in Python to detect, process and sync files. In particular, it's designed to sync files to CDNs. Amazon S3 and Rackspace Cloud Files, as well as any Origin Pull or (S)FTP Push CDN, are supported. Originally written for my bachelor thesis at Hasselt University in Belgium.
https://wimleers.com/fileconveyor
The Unlicense
341 stars 95 forks source link

Adds SFTP support for fileconveyor #57

Closed jacobSingh closed 13 years ago

jacobSingh commented 13 years ago

Requires percona, can be used just like the ftp transport. Can accept parameter or will use ssh agent of current session.

wimleers commented 13 years ago

You say "percona", but I assume that you really mean "paramiko" (http://www.lag.net/paramiko/).

I added some basic documentation: https://github.com/wimleers/fileconveyor/commit/99331c3d2d8badd9f69ccf5f2c0f05813306c862. Could you please confirm that it is correct?

It has been merged (but github didn't detect it because the default merge mechanism failed, I had to use the patch approach documented here: http://help.github.com/pull-requests/).

jacobSingh commented 13 years ago

Yes, just a brain fart there :)

The documentation link is https://github.com/wimleers/fileconveyor/commit/99331c3d2d8badd9f69ccf5f2c0f05813306c862 . (the dot got added to yours).

It might be worth noting that it will use the SSH agent if you don't specify the key.

wimleers commented 13 years ago

If you don't specify a key, nor a password, you mean? Could you just roll a quick patch (you don't have to create a fork)?

jacobSingh commented 13 years ago

Hah, I think I screwed up the branching / forking stuff... anyway here's a patch:

diff --git a/code/README.txt b/code/README.txt
index a81969f..e44961a 100644
--- a/code/README.txt
+++ b/code/README.txt
@@ -247,7 +247,6 @@ Available settings:
 - url
 - port
 - path
-- key

 Transporter: SFTP (sftp)
@@ -261,6 +260,7 @@ Available settings:
 - url
 - port
 - path
+- key (if not provided, fileconveyor will attempt to connect via keys from your ssh-agent.)