On Saturday 15 September 2007, Peter Humphrey wrote:

> On Friday 14 Sep 2007, Etaoin Shrdlu wrote:
> > Or, you can use keychain.
> > Read these articles for a good introduction to keychain (and ssh key
> > management):
> >
> > http://www.gentoo.org/doc/en/articles/openssh-key-management-p1.xml
> > http://www.gentoo.org/doc/en/articles/openssh-key-management-p2.xml
> > http://www.gentoo.org/doc/en/articles/openssh-key-management-p3.xml
>
> Those are the articles I said I'd read in my first e-mail. They make
> it clear that ssh is intended for interactive use only.

They also make clear that, using keychain, ssh can be used from cron jobs 
too (as others have also said) to allow passwordless logins. All you 
have to do is log in once when the box is booted, so that the necessary 
environment is established, and from then the necessary files can be 
sourced from wherever you like, including scripts run from cron jobs.
If the uptime of your system is high enough, this means logging in once 
every several months or so, and forget about the whole thing.

"And because SSH_AUTH_SOCK is recorded in ~/.ssh-agent, our own shell 
scripts and cron jobs can easily connect with ssh-agent just by sourcing 
the ~/.ssh-agent file". Things are a little different with the newer 
versions of keychain, but the fact that cron jobs can do passwordless 
logins usign keychain still is true (also because I use it all the 
time).
-- 
[EMAIL PROTECTED] mailing list

Reply via email to