Re: Using public key based authentication with ssh (was Re: rsync down)

Raymond Toy <[email protected]>
Newsgroups gmane.lisp.common-lisp-net.devel
Message-ID <[email protected]>
>>>>> "Mark" == Mark Evenson <[email protected]> writes:

    Mark> On 07 Oct 2014, at 05:36, Raymond Toy <[email protected]> wrote:

    >>>>>>> "Mark" == Mark Evenson <[email protected]> writes:
    >> 
    Mark> On 10/5/14 16:58, Raymond Toy wrote:
    >>>> On 10/5/14 2:18 AM, Mark Evenson wrote:
    >>>>> On 10/5/14 0:41, Raymond Toy wrote:
>>>>> As the subject says, rsync appears to be down.
>>>>> 
>>>>> I've been using rsync to do periodic backups of ], so can we get
>>>>> rsync  restored?
>>>>> 
    >>>>> Hmmm.  The 'rsync' binary is still present:
    >>>>> 
    >>>>> what do you mean by "rsync" is down?  Did you use  something other than
    >>>>> "rsync through ssh connection"?
    >>>>> 
    >>>> Sorry, I should have been clearer.  I've had a cronjob for years that
    >>>> basically does:
    >>>> 
    >>>> rsync -av rsync://common-lisp.net/project/cmucl/cvsroot cmucl/cvsroot
    >>>> 
    >>>> When I run this now, I get this error:
    >> 
    Mark> Indeed rsyncd is not running as a service.
    >> 
    Mark> Any reason you don't simply change your usage to:
    >> 
    Mark> rsync -avz [email protected]:/project/cmucl/cvsroot cmucl/cvsroot
    >> 
    Mark> using "rsync over ssh" instead of "rsyncd"?
    >> 
    >> Doesn't that require that I supply my password (or ssh credentials)?
    >> I don't know how to do that in a crontab script.

    Mark> One would use the public key based authentication scheme.  From the ssh(1) manual page:


I am using public key authentication; my c-l.net account has
authorized_keys set up so I can ssh in without using my password
(which I've now forgotten).

But for this to work, don't I have to run ssh-agent/ssh-add? I can't
do that from my cron job.

Am I missing something?

--
Ray
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.