This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: ssh-agent + ssh_add on WinNT
On Tuesday 19 December 2000 00:41, CGrijalva@pav.com wrote:
> I have a similar problem to the one David Starks-Browning discussed
> in his 10-14 posting, where ssh-add could not open a connection to
> [...]
> The problem is that ssh-agent sets SSH_AGENT_PID incorrectly. An
> eval get the correct agent_pid, which can then be set manually.
> After that ssh-add works.
> [...]
> $ ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-bQnJS240/agent.240; export SSH_AUTH_SOCK;
> SSH_AGENT_PID=221; export SSH_AGENT_PID;
> echo Agent pid 221;
>
> administrator@CGRIJALVA ~
> $ ls -Fal /tmp/ssh-bQnJS240/a*
> srw-r--r-- 1 administ None 15 Dec 18 17:05
> /tmp/ssh-bQnJS240/agent.240=
> $ eval `ssh-agent`
> Agent pid 165
That's the wrong way to do this. ssh-agent only prints the commands
to set the environment variables to stdout. Setting the variables is
in your responsibility. You should call ssh-agent either by raising
a sub command (eg. a shell)
ssh-agent /bin/bash
or by setting the variables with eval but in the first call:
eval `ssh-agent'
Don't call ssh-agent and then eval `ssh-agent`. The first ssh-agent
will never be used.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple