ssh-agent and ssh-add with openssh-2.2.0p1 on Redhat 7
John Horne
J.Horne at plymouth.ac.uk
Tue Oct 31 02:34:46 EST 2000
On 30-Oct-00 at 14:41:02 Darren Evans wrote:
> i'm trying to figure out if i'm being silly or if there is a genuine
> problem.
>
> Running on the notorious Redhat 7, 2.2.16-22 #1, X86.
>
> [user at host]$ ssh-agent -s
> SSH_AUTH_SOCK=/tmp/ssh-XXYFcFR6/agent.2101; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=2102; export SSH_AGENT_PID;
> echo Agent pid 2102;
> [user at host]$ echo $SSH_AUTH_SOCK
>
My understanding is that the '-s' option shows the shell commands to be
executed (if its not a C shell) - not that they *are* executed. For that
reason in my .bash_profile file I have:
eval `ssh-agent` >/dev/null
SSH_ASKPASS=/usr/libexec/ssh/ssh-askpass
export SSH_ASKPASS
ssh-add $HOME/.ssh/id_dsa (I use protocol 2)
(Using X (KDE) login) this sets up the correct variables. The 'eval'
executes what 'ssh-agent' displays. The ssh-add runs Jim Knobles x11-askpass
program to store my passphrase once upon login (very handy :-) )
I have openssh (rpms) running fine under RH7 with the 2.2.16, 2.2.17 kernels
and 2.4.0-pre6 at home.
John.
------------------------------------------------------------------------
John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
E-mail: jhorne at plymouth.ac.uk
PGP key available from public key servers
More information about the openssh-unix-dev
mailing list