Re: ssh-agent on Red Hat

From: chris (cherbst@hotpop.com)
Date: 05/23/02


From: chris <cherbst@hotpop.com>
Date: Thu, 23 May 2002 08:50:53 -0400

On Thu, 23 May 2002 04:48:07 -0400, Robert Morelli wrote:

> I'd like to use ssh-agent for authentication on my Red Hat 7.1 system,
> by using something in the spirit of ssh-agent startx However, when I
> log in, my start up scripts get me to gnome's login screen
> automatically, so I never actually enter startx manually.
>
> I'm a bit too lazy to unravel exactly where and in which script I'd need
> to put ssh-agent, so I'd appreciate it very much if someone who already
> knows this could let me know.

I have this in ~/.xinitrc:

ssh-agent > ~/.ssh-agent
eval `grep ^SSH ~/.ssh-agent`

I sent the variables to a seperate file so I could make a cron to delete
my keys every 4 hours or so. I am using 'startx', not xdm or anything
like that to start x. ssh-agent is started and all the variables are set
for me with this.

I don't know if .xinitrc is read in your config, I guess you would want
this before 'gnome-session' (if you are using gnome as your desktop
environment) in .xinitrc or .xsession, whatever your system uses.



Relevant Pages

  • Re: ssh-agent on Red Hat
    ... > by using something in the spirit of ssh-agent startx However, ... my start up scripts get me to gnome's login screen ... I don't know if .xinitrc is read in your config, ...
    (comp.security.ssh)
  • Re: startx crashes
    ... above diagnostics to be created before startx was run. ... It would be nice if the output of ps auxf could be made to show more of the ... I'll try to remember what scripts might be telling eth0 to start. ...
    (comp.os.linux.misc)
  • Re: DPMS for runlevel=3?
    ... There could be other differences if any scripts executed by the init ... use chkconfig to have chkconfig create/remove the symbolic ... used the command, startx, to start X. ...
    (Fedora)
  • Re: ssh-agent Processes
    ... save the environment variables in a form that shell ... That way cron jobs that are shell scripts can ... they can make sure the variables name a "live" ssh-agent process. ...
    (comp.security.ssh)
  • Re: KDE ssh-agent
    ... It manages ssh keys. ... Using ssh-agent you can add your key to the agent and only ... I have been using ssh-agents for a while and I have good scripts and ...
    (Fedora)