Scripting SSH with Python
Carsten Gaebler
cg at schlund.de
Tue Oct 24 16:28:43 EDT 2000
Lenny Self wrote:
> I am scripting SSH or actually rsync using ssh and I am in need of a bit of
> help. When I make the SSH connection I am prompted to enter a password...
> my problem is that I don't know how to look for this promt and have the
> script submit the password for me. Can anyone give me some help on this.
You could create a "command only" key that only allows the execution of
a specific command on the remote host (rsync in your case). Specify no
passphrase for that key and your done.
cg.
More information about the Python-list
mailing list