Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh-agent
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
HePeR
n00b
n00b


Joined: 04 Oct 2002
Posts: 39

PostPosted: Thu Dec 19, 2002 1:44 pm    Post subject: ssh-agent Reply with quote

When i just start the ssh-agent i runs but doesnt export env-variables like

SSH_AUTH_SOCK and SSH_AGENT_PID

when i eval 'ssh-agent' it says it does export those but they aren't in when i printenv

and they ssh-agent don't work until i manually export those variables

I there a fix for this ??

thx
HePeR
Back to top
View user's profile Send private message
arthax
n00b
n00b


Joined: 10 Dec 2002
Posts: 48

PostPosted: Fri Dec 20, 2002 12:10 am    Post subject: Re: ssh-agent Reply with quote

HePeR wrote:
When i just start the ssh-agent i runs but doesnt export env-variables like

SSH_AUTH_SOCK and SSH_AGENT_PID


Because it forks.
HePeR wrote:

when i eval 'ssh-agent' it says it does export those but they aren't in when i printenv

and they ssh-agent don't work until i manually export those variables

I there a fix for this ??

thx
HePeR

Try this in terminal shell
Code:

exec /usr/bin/ssh-agent $SHELL
echo $SSH_AGENT_PID
echo $SSH_AUTH_SOCK

It works, but it isn't a global setting!

mu
Back to top
View user's profile Send private message
Alowishus
n00b
n00b


Joined: 18 Apr 2002
Posts: 22

PostPosted: Fri Dec 20, 2002 3:52 am    Post subject: Reply with quote

This may seep into the Desktop Forum topic range, but what's the "Gentoo way" of getting ssh-agent to run underneath the X session like it's supposed to? I figure there's gotta be a neat little setting somewhere so that I don't have to go hand-editing xinit scripts.
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Fri Dec 20, 2002 4:54 pm    Post subject: Reply with quote

Alowishus wrote:
This may seep into the Desktop Forum topic range, but what's the "Gentoo way" of getting ssh-agent to run underneath the X session like it's supposed to? I figure there's gotta be a neat little setting somewhere so that I don't have to go hand-editing xinit scripts.


That depends on how you start your X session.

If you use gdm, it should start by default, check out
/etc/X11/gdm/gnomerc.

If you run startx from your .bash_login, like I used to, you could
wrap ssh-agent around startx:

Code:
if [ `tty` = "/dev/vc/1" ]; then
        echo ""
        echo "Starting X in 2 seconds (type Control-C to interrupt)"
        sleep 2
        echo ""
        /usr/bin/ssh-agent -- startx > .Xoutput 2> .Xerrorlog
        clear           # get rid of annoying cursor rectangle
        logout          # logout after leaving windows system
fi


If you run startx from a command prompt, you can could add the agent
to your .xinitrc (which you said you didn't really want to do):

Code:
exec /usr/bin/ssh-agent -- /usr/bin/gnome-session


--rtn
Back to top
View user's profile Send private message
sebest
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 163
Location: Paris - France

PostPosted: Fri Dec 20, 2002 10:53 pm    Post subject: Reply with quote

Why don't you use keychain to manage your ssh agent?
http://www.gentoo.org/proj/en/keychain.xml

It's really great!
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