Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Mon, 24 Feb 2003 08:02:03 +0000
Message-ID: <7149-Mon24Feb2003080203+0000-starksb@ebi.ac.uk>
From: David Starks-Browning <starksb@ebi.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: matt@mattflo.com
Cc: cygwin@cygwin.com
Subject: ssh-add could not open connection
In-Reply-To: <20030224074938.24900.qmail@web14901.mail.yahoo.com>
References: <20030224074938.24900.qmail@web14901.mail.yahoo.com>

On Sunday 23 Feb 03, Matt writes:
> I am running cygwin on WinXP I am having trouble with
> ssh-agent not being able to establish the
> SSH_AUTH_SOCK and SSH_AGENT_PID environment variables.
>  then when i go to run ssh-add it can't find the
> authentication agent.  I know this is the problem
> becuase i manually executed the commands the ssh-agent
> is supposed to do automatically.  however i did find
> that i needed to add "set" in front of the environment
> variable assignment.  Have i messed spmething up when
> changing around permissions or what isn't this
> supposed to work in cygwin?
> 
> results of ssh-agent:
> $ ssh-agent
> SSH_AUTH_SOCK=/tmp/ssh-CjVj1576/agent.1576; export
> SSH_AUTH_SOCK;
> SSH_AGENT_PID=284; export SSH_AGENT_PID;
> echo Agent pid 284;

You need to run

	eval `ssh-agent`

instead of

	ssh-agent

(not Cygwin-specific).

Regards,
David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

