On Sat, Oct 30, 1999 at 01:25:28PM -0700, OTR Comm wrote:

        [...]

> When I execute ssh-agent $shell, I get:

>       [root@sec ssh-1.2.26]# ssh-agent $shell
>       SSH_AUTH_SOCK=/tmp/ssh-root/agent-socket-358; export SSH_AUTH_SOCK;
>       SSH_AGENT_PID=359; export SSH_AGENT_PID;
>       echo Agent pid 359;

> I see ssh-agent in my running processes :

> root       359  0.0  0.1  1468   520  ?  S    12:40   0:00 ssh-agent

> and I get an entry in /tmp/ssh-root:

> srwx------   1 root     root            0 Oct 30 12:40 agent-socket-358

> Now if I execute ssh-add, I get:

>       [root@sec ssh-1.2.26]# ssh-add
>       Need passphrase for /root/.ssh/identity ([EMAIL PROTECTED]).
>       Enter passphrase: 
>       Could not open a connection to your authentication agent.

        That's because you don't have the SSH_AUTH_SOCK environment variable
set.  Try executing ssh-agent like this:

        eval `ssh-agent`

        You should then only see the following printed:

        Agent pid 359

        If you then type this:  "set | grep SSH"

        You should see this in your environment:

        SSH_AUTH_SOCK=/tmp/ssh-root/agent-socket-358; export SSH_AUTH_SOCK;
        SSH_AGENT_PID=359; export SSH_AGENT_PID;

        Now, ssh-add should work.


        I run ssh-agent and direct it's output to a file like this:

        ssh-agent > ~/.ssh-agent
        . ~/.ssh-agent

        Then, any other shell I want to have access to that agent merely
needs to run the command:       ". ~/.ssh-agent"

        (The leading dot is important...  C Shell users should use
"source ~/.ssh-agent" instead.)

> (I did put the correct passpharse in)

> BTW, I do not know if this has anything to do with it, but if I execute
> the ssh-agent -k command (with ssh-agent still in my processes), I get:

> [root@sec .ssh]# ssh-agent -k
> No SSH_AGENT_PID environment variable found

        Try "man ssh-agent" and "man ssh-add".  These are explained there.

> Does anyone know why the ssh-agent/ssh-add pair are not working?

        RTFM...

> Thank you in advance,

> M

        Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  [EMAIL PROTECTED]
  (The Mad Wizard)      |  (770) 331-2437   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

Reply via email to