Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Automating rsync through a script

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Casey Harkins <charkins AT upl.cs.wisc.edu>
  • To: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • Cc: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Automating rsync through a script
  • Date: Tue, 30 Sep 2003 12:44:46 -0500 (CDT)

On Tue, 30 Sep 2003, Andrew wrote:
> > #!/usr/bin/expect -f
> > spawn rsync --rsh=/usr/bin/ssh -acz --stats
> > dkowis AT gambit.gotdns.org:/home/cvsroot /home
> > expect "Password:"
> > send "\r"
>
> "Password:" might work better as "password:", depending on what ssh gives
> you.
> and if all else fails, try autoexpect :)

Another option here would be to use public/private key system. Generate
your keys, drop the public key on gambit.gotdns.org and leave the private
key unencrypted on the local machine. Not any less secure than having the
password in the script itself. If you're willing to type in a passphrase
when you boot the machine, you could use ssh-agent and the private key
would be kept encrypted.

Good luck!

-casey






Archive powered by MHonArc 2.6.24.

Top of Page