ssh-agent and ssh-add with openssh-2.2.0p1 on Redhat 7

Darren Evans darren at horseplay.demon.co.uk
Tue Oct 31 03:27:33 EST 2000


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







More information about the openssh-unix-dev mailing list