Hi all, 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 [user at host]$ echo $SSH_AGENT_PID [user at host]$ ssh-add Could not open a connection to your authentication agent. [user at host]$ ls -l /tmp/ssh-XXYFcFR6/ total 0 srwxrwxr-x 1 user user 0 Oct 30 14:26 agent.2101 Is the next version is due reasonably soon? thanks Darren
Lutz Jaenicke
2000-Oct-30 15:34 UTC
ssh-agent and ssh-add with openssh-2.2.0p1 on Redhat 7
On Mon, Oct 30, 2000 at 02:41:02PM +0000, Darren Evans wrote:> > Hi all, > > 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;Use eval `ssh-agent` to have the appropriate environment variables set. Then the "echo" and "ssh-add" commands will work properly. Best regards, Lutz -- Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/ Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129 Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
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
Thank you for showing me how to use ssh-agent ;-) I'd like to suggest this information is added to the man page for this great program. >Use >eval `ssh-agent` >to have the appropriate environment variables set. Then the "echo" >and "ssh-add" commands will work properly.>[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 > >[user at host]$ echo $SSH_AGENT_PID > >[user at host]$ ssh-add >Could not open a connection to your authentication agent. >[user at host]$ ls -l /tmp/ssh-XXYFcFR6/ >total 0 >srwxrwxr-x 1 user user 0 Oct 30 14:26 agent.2101