sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] Automating rsync through a script
- 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
-
[SM-Discuss] Automating rsync through a script,
David Kowis, 09/30/2003
-
Re: [SM-Discuss] Automating rsync through a script,
Andrew, 09/30/2003
- Re: [SM-Discuss] Automating rsync through a script, David Kowis, 09/30/2003
-
Re: [SM-Discuss] Automating rsync through a script,
Casey Harkins, 09/30/2003
- Re: [SM-Discuss] Automating rsync through a script, Mads Laursen, 09/30/2003
- Re: [SM-Discuss] Automating rsync through a script, Andrew, 09/30/2003
-
Re: [SM-Discuss] Automating rsync through a script,
Andrew, 09/30/2003
Archive powered by MHonArc 2.6.24.