Re: ssh-agent for openSSH does not export SSH_AUTH_SOCK..

From: Richard E. Silverman (slade@shore.net)
Date: 05/26/02


From: slade@shore.net (Richard E. Silverman)
Date: 26 May 2002 13:12:43 -0400


> Hi,
> I have the problem that I cannot access the ssh-agent once started, because
> the prog does not export the ENV Variables.

No; you have the problem that you didn't read the man page carefully and
have odd expectations. It cannot "export the ENV variables;" it has no
way of affecting the environment in your shell.

% man ssh-agent
...
     There are two main ways to get an agent setup: Either the agent starts a
     new subcommand into which some environment variables are exported, or the
     agent prints the needed shell commands (either sh(1) or csh(1) syntax can
     be generated) which can be evalled in the calling shell. Later ssh(1)
     looks at these variables and uses them to establish a connection to the
     agent.
...

> How can I solve that problem?

% eval `ssh-agent -s`

-- 
  Richard Silverman
  slade@shore.net



Relevant Pages

  • ssh-agent for openSSH does not export SSH_AUTH_SOCK..
    ... I have the problem that I cannot access the ssh-agent once started, ... the prog does not export the ENV Variables. ... with ssh-agent -s for the bash. ... If I do it manually I can use the prog. ...
    (comp.security.ssh)
  • ssh-agent for openSSH does not export SSH_AUTH_SOCK..
    ... I have the problem that I cannot access the ssh-agent once started, ... the prog does not export the ENV Variables. ... with ssh-agent -s for the bash. ... If I do it manually I can use the prog. ...
    (comp.security.ssh)
  • Re: ssh-agent for openSSH does not export SSH_AUTH_SOCK..
    ... > I have the problem that I cannot access the ssh-agent once started, ... It cannot "export the ENV variables;" it has no ... new subcommand into which some environment variables are exported, ... be generated) which can be evalled in the calling shell. ...
    (comp.security.ssh)
  • VC++ 2005 and environment variables
    ... I am using environment variables in my VC++ 2005 pocketpc ... for example i have the output directory set to ... The only 2 places env variables are not working are ie ... recognise my env variables. ...
    (microsoft.public.vc.ide_general)
  • Re: setting the environment variables in perl
    ... Paul Kraus wrote: ... > You can access all the env variables like this... ... Use this one-liner to check your environment variables: ...
    (perl.beginners)