G'day
In response to a message that i saw in the message archive...
"Braden N. McDaniel" wrote:
> I'm trying to use ssh-agent with GNOME. I have placed the line
>
> ssh-agent gnome-session
>
> in my .gnomerc file. But when I attempt to run ssh-add, I get
>
> Could not open a connection to your authentication agent.
>
> "ps -A" shows that ssh-agent is indeed running. What might I be doing
> wrong?
I have been doing this for several months now...
I am running on a RedHat 6.2 system, this approach should be easily
adapted for almost any other environment...
My system is configured to start in X-Windows with GDM managing the
login (this approach also works for both kdm and xdm)...
The Gnome Display Manager (gdm) uses several configuration files to
control the initial display and the login process. The important files
to consider here are the files in the '/etc/X11/gdm/Session' directory.
One of these files will be used to setup the session once a valid login
has been entered (I will use the default session - adjust as required).
The 'default' session file actually uses '/etc/X11/xdm/Xsession'.
I have added the following lines into this file BEFORE the block of
logic that starts the desktop environment:
# SSH Password Dialog for X
#SSH_ASKPASS=/usr/lib/ssh/openssh-askpass
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
export SSH_ASKPASS
eval `ssh-agent`
Then, in the GNOME Control Center under 'Session' / 'Startup Programs' I
have added the command 'ssh-add' with a priority of 50.
As the GNOME initialization completes, the 'ssh-add' command is
executed; since there is no terminal session available it looks to the
environment variable 'SSH_ASKPASS' to get the name of the program to
execute to prompt for the password.
I hope this helps.
--
Fred McGuirk
------------------------------------------------------------------------
memorable comment to be added later... when memory permits
------------------------------------------------------------------------