Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
keychain not setting environmental variables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
afrodocter1
n00b
n00b


Joined: 16 Jan 2007
Posts: 49

PostPosted: Wed Nov 14, 2007 11:12 pm    Post subject: keychain not setting environmental variables Reply with quote

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
View user's profile Send private message
afrodocter1
n00b
n00b


Joined: 16 Jan 2007
Posts: 49

PostPosted: Wed Nov 14, 2007 11:16 pm    Post subject: Reply with quote

sorry for the post.
i see that they expect you to source ~./keychain/hostname-sh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum