[paramiko] rsync using paramiko remote shell implementation
Keith Ancowitz
kancowitz at yahoo.com
Sun Jun 3 11:12:15 PDT 2007
Hello Paramiko Community,
I am attempting to use rsync through a paramiko script. The command will look like this...
rsync -avz -e myssh.py testfile remotehost:/tmp
When this command executes, rsync will fork a command to attempt to start an rsync server on the remote host. The command looks like this...
myssh.py remotehost rsync --server -vlogDtprz . /tmp
With paramiko, I authenticate the transport and open a session where I execute the command on the remote server but the rsync client produces an error that 0 bytes have been received. By default, ssh with out any extra options like the command above handles the communication between the remote rsync server and the calling client.
1) how can I get the same functionality as ssh to have the communication tunnel?
I did a lot of work on an implementation like the demo forward.py, but when I opened a channel with direct-tcp, I was unable to execute a command.
2) What is the difference between direct-tcp and foward-tcp?
3) To create a tunnel, what are the settings a channel/tranport object should have?
Am I going about it in the wrong way?
Thanks in advance.
Keith Ancowitz
Software Engineer
L-3 Communications
Annapolis Junction, MD
---------------------------------
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.lag.net/pipermail/paramiko/attachments/20070603/d7148dd7/attachment.htm
More information about the paramiko
mailing list