SV: passing ssh password to rsync without prompting it
Tevfik Karagulle
tevfik at itefix.no
Thu Dec 2 20:59:23 GMT 2004
Hi,
A simple recipe can be found at
http://www.itefix.no/phpws/index.php?module=faq&FAQ_op=view&FAQ_id=27
Rgrds Tev
> -----Opprinnelig melding-----
> Fra: rsync-bounces+tevfik=itefix.no at lists.samba.org
> [mailto:rsync-bounces+tevfik=itefix.no at lists.samba.org]Pa vegne av Jim
> Kleckner
> Sendt: 2. desember 2004 18:02
> Til: jack alex
> Kopi: rsync at lists.samba.org
> Emne: Re: passing ssh password to rsync without prompting it
>
>
> Wayne Davison wrote:
> > On Wed, Dec 01, 2004 at 11:02:15PM -0800, jack alex wrote:
> >
> >>So, why it is not picking password from password file and any other
> >>idea to pass ssh password to rsync without prompting it.
> >
> >
> > This is because the option only affects rsync's use of an rsync daemon.
> > Rsync has no options that affect ssh's password prompting. You should
> > get ssh working as needed without rsync being involved (perhaps running
> > a simple command such as "uptime") and then use that technique with
> > rsync. However, if you've ruled out ssh keys, your only other choice
> > may be some kind of host-based authentication. See the ssh docs for
> > details.
> >
> > ..wayne..
>
> Use keychain to manage an ssh-agent with a key store.
> You only have to put in the password once per session
> that way. Or leave the key store without a password
> if you dare...
>
> http://www.gentoo.org/proj/en/keychain/index.xml
>
> It sets environment variables to connect with a
> named pipe for ssh-agent. With authentication
> chaining, you can run remote commands that pass
> authentication back to your login computer.
> Just put the public part of your key into
> ~/.ssh/authorized_keys2 on all of the machines
> you want to use.
>
> Jim
> --
> To unsubscribe or change options:
> http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
More information about the rsync
mailing list