View previous topic :: View next topic |
Author |
Message |
afrodocter1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jan 2007 Posts: 49
|
Posted: Wed Nov 14, 2007 11:12 pm Post subject: keychain not setting environmental variables |
|
|
i am having problems with keychain. it seems to set the SSH environmental variables incorrectly.
for instance i can get my ssh-agent to work manually
Code: |
> eval `ssh-agent`
Agent pid 20703
> ssh-add
Enter passphrase for /home/alex/.ssh/id_dsa:
Identity added: /home/alex/.ssh/id_dsa (/home/alex/.ssh/id_dsa)
|
then if i kill ssh-agent and clear my variables and try to run keychain. i get
Code: |
> ssh-agent -k
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 20841 killed;
> keychain
KeyChain 2.6.8; http://www.gentoo.org/proj/en/keychain/
Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL
* Initializing /home/alex/.keychain/dong-sh file...
* Initializing /home/alex/.keychain/dong-csh file...
* Initializing /home/alex/.keychain/dong-fish file...
* Starting ssh-agent
> ssh-add
Could not open a connection to your authentication agent.
|
the contents of the keychain files are correct:
Code: |
> pgrep ssh-agent
20737
> cat .keychain/dong-sh
SSH_AUTH_SOCK=/tmp/ssh-Oushy20736/agent.20736; export SSH_AUTH_SOCK;
SSH_AGENT_PID=20737; export SSH_AGENT_PID;
> env | grep SSH
|
but it is obviously not being evaluated if i
Code: |
> eval `cat .keychain/dong-sh`
> env | grep SSH
SSH_AGENT_PID=20906
SSH_AUTH_SOCK=/tmp/ssh-CSuMw20905/agent.20905
> ssh-add
Enter passphrase for /home/alex/.ssh/id_dsa:
Identity added: /home/alex/.ssh/id_dsa (/home/alex/.ssh/id_dsa)
>
|
it works. whats is supposed to evaluate this and how can i fix this? or am i missing somthing? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
afrodocter1 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Jan 2007 Posts: 49
|
Posted: Wed Nov 14, 2007 11:16 pm Post subject: |
|
|
sorry for the post.
i see that they expect you to source ~./keychain/hostname-sh |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|