How to start keychain?



After much reading, to try to get a cron job being able to run with ssh, I
found that the best solution for me appears to be to run keychain, with
--clear. I found the IBM tutorials, which helped a lot, until it came to the
bit about setting up the automatic loading of keychain. That's when you
realise how out of date the tutorials are. Parts 1 and 2 were written in
2001 and part 3 in 2002. Much has changed since then.

Trying to follow the instructions but adapting to what happens now, I put the
following into ~/.bash_profile

/usr/bin/keychain --clear ~/.ssh/id_dsa
source ~/.bashrc

Into ~/.bashrc I put

eval `ssh-agent` #should that have been changed to 'eval keychain'?

and at the start of the cron job I put

source ~/.keychain/david.lydgate.lan-sh

Then I logged out, and back in. Keychain did not start. I ran 'eval
keychain' and the cron job has completed once correctly.

Is it just the eval statement that is wrong, or do I need to change other
things?

Anne

Attachment: pgpHTmX3lvqqM.pgp
Description: PGP signature

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: How to start keychain?
    ... I found the IBM tutorials, which helped a lot, until it came to the ... bit about setting up the automatic loading of keychain. ... keychain' and the cron job has completed once correctly. ... at the docs on the rsync homepage? ...
    (Fedora)
  • ssh/keychain dilemma
    ... But I'm realizing that the way I've been doing it (i.e., having the cron job ssh in using a key without a passphrase) is rather insecure. ... The documentation generally recommendeds to start keychain when you log in, which then lets all subsequent processes on the box access the ssh keys. ... I imagine that it could be possible to start keychain on system boot, but I'm not thrilled with that idea either, as it would interrupt the boot sequence with a password prompt and thus prevent completely unattended booting of the file server. ...
    (SSH)