[Twisted-Python] how to scp with twisted?
Michael Li
mli at deform.com
Fri Sep 8 12:59:01 MDT 2006
Hi, Phil
I've looked at your code, it's very helpful.
I am not familiar with Twisted,
is it possible for you to show some code of
local -> remote and directory listings ?
I am very interested in directory listings, specially
in a Windows<->linux environment. I want to have something
like FileZilla, but I can program. More specific, the actual
location of files is on linux harddisk, the harddisk is
shared to Windows by Samba, from Windows, I want to know
the local path on linux. For example, X:\a_file.txt on Windows,
I want to get local path on linux, something like /home/a_file.txt.
Thank you very much in advance.
Best regards.
Michael Li
Phil Mayers wrote:
> f rom wrote:
>
>> hi, can you point me to a sample or whatever on how to
>> implement "scp" secure file copy with twisted for
>> python on windows ?
>
>
> The very first hit for "twisted scp" on Google is a post containing code
> I wrote which does a simple copy remote -> local
>
> http://twistedmatrix.com/pipermail/twisted-python/2005-December/012180.html
>
> The scp "application" is basically:
>
> 1. ssh in
> 2. authenticate
> 3. open a channel
> 4. run the "scp" app on the channel
> 5. communicate using the rcp protocol to "scp" stdin/stdout via the SSH
> channel
>
> The rcp protocol is undocumented as far as I can tell, and I had to read
> the openssh and putty source codes to get even that far, but if you have
> a dig then implementing the other bits e.g. local -> remote, directory
> listings (for recursive copies) and so on should not be that hard.
>
> HTH
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
==========
This email message and any attachments are for the sole use of the intended recipients and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipients, please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachments to the original message.
More information about the Twisted-Python
mailing list