password input in rsync

Julio F. Schwarzbeck jflores at codeit.com
Tue Jan 23 13:39:32 EST 2001


run ssh-agent $SHELL and ssh-add /home/you/.ssh/yourkey

the second one will ask for a pwd and will place it in memory, use popen
to accomplish that, then you just ssh without supplying a pwd.

Julio

Ben Park wrote:

> Hi,
>
> I am trying to automate the process of getting files using rsync. Here
> is what I do:
>
> myPass = '1234'
> temp1 = "rsync -avz -e 'ssh -l benpark' guppy:temp1 ."
> out1,in1,err1 = popen2.popen3(temp1)
> in1.write(myPass)
>
> But it does not work. rsync does not take password input from the
> standard in.
>
> Any suggestion? Thanks in advance.
>
> Sent via Deja.com
> http://www.deja.com/
> --
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list