Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54633 - keychain doesn't create .ssh-agent after loading
Summary: keychain doesn't create .ssh-agent after loading
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Keychain (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 07:02 UTC by Ian Gibbs
Modified: 2004-07-12 07:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Gibbs 2004-06-21 07:02:33 UTC
Have installed keychain-2.3.2 from the noarch RPM. Everything installed fine, and works as it should (ssh-agent starts) apart from not creating the .ssh-agent file. Becase the file isn't created, the second of the two lines in my bash script fails.

Keychain is called in the last two lines of /home/gibbsi/.bashrc (can't put it in .bash_profile):
/usr/bin/keychain ~/.ssh/id_dsa
source ~/.ssh-agent > /dev/null

Reproducible: Always
Steps to Reproduce:
1. Install from RPM
2. Add above two lines to your .bashrc
3. Start new shell

Actual Results:  
Output on startup:
KeyChain 2.3.2; http://www.gentoo.org/projects/keychain
Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL

 * Initializing /home/gibbsi/.keychain/gallahad.flash.org.uk-sh file...
 * Initializing /home/gibbsi/.keychain/gallahad.flash.org.uk-csh file...
 * Starting ssh-agent
 * Adding 1 key(s)...
Enter passphrase for /home/gibbsi/.ssh/id_dsa:
 * Identity added: /home/gibbsi/.ssh/id_dsa (/home/gibbsi/.ssh/id_dsa)

bash: /home/gibbsi/.ssh-agent: No such file or directory

Expected Results:  
Returned a prompt

I'm wondering if there's something about .bashrc that means I can't call
keychain from it. Perhaps I just don't know enough about BASH... OS is Mandrake
10.0 Community. Username, home dir permissions, bash and keychain versions:

[gibbsi@gallahad 02:57 gibbsi]# ll /home
total 4
drwxr-xr-x  30 gibbsi gibbsi 4096 Jun 21 14:57 gibbsi/
[gibbsi@gallahad 02:58 gibbsi]# rpm -q bash keychain
bash-2.05b-16mdk
keychain-2.3.2-1
[gibbsi@gallahad 02:59 gibbsi]# whoami
gibbsi
Comment 1 Ian Gibbs 2004-06-21 07:05:29 UTC
Reassigned in accordance with man page
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-07-12 07:16:15 UTC
You're trying to source the wrong file.  It's not ~/.ssh-agent.  Look at the messages outputted from keychain:

 * Initializing /home/gibbsi/.keychain/gallahad.flash.org.uk-sh file...

That is the file that you should source.