delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/19/06:28:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Corinna Vinschen <cygwin AT cygwin DOT com>
Date: Tue, 19 Dec 2000 12:27:51 +0100
X-Mailer: KMail [version 1.1.99]
To: cygwin AT cygwin DOT com
References: <24C5595F6FE1D211B5A700A0C9AB2EC1AA9D6E AT pav10exc DOT pav DOT com>
In-Reply-To: <24C5595F6FE1D211B5A700A0C9AB2EC1AA9D6E@pav10exc.pav.com>
Subject: Re: ssh-agent + ssh_add on WinNT
MIME-Version: 1.0
Message-Id: <00121912275104.28008@cygbert>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id GAA17424

On Tuesday 19 December 2000 00:41, CGrijalva AT pav DOT 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 AT 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 AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019