From owner-freebsd-questions Mon Feb 5 20:50:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 5E9DA37B491 for ; Mon, 5 Feb 2001 20:50:17 -0800 (PST) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id 21F8A3E09; Mon, 5 Feb 2001 20:50:17 -0800 (PST) Received: from unixfreak.org (localhost [127.0.0.1]) by bazooka.unixfreak.org (Postfix) with ESMTP id 20B763C10B; Mon, 5 Feb 2001 20:50:17 -0800 (PST) To: John Indra Cc: Kris Kennaway , freebsd-questions@FreeBSD.ORG Subject: Re: What is ssh-agent and ssh-add? In-Reply-To: Message from John Indra of "Tue, 06 Feb 2001 11:22:54 +0700." <20010206112253.E18364@office.naver.co.id> Date: Mon, 05 Feb 2001 20:50:12 -0800 From: Dima Dorfman Message-Id: <20010206045017.21F8A3E09@bazooka.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Mon, Feb 05, 2001 at 08:00:57PM -0800, Kris Kennaway wrote: > > >They let you cache your SSH credentials locally and forward them on to > >other systems you connect to, so you don't have to type your > >passphrase more than once. > > Interesting... > After reading this, I try to run it. I'm on KDE's konsole: > $ ssh-agent > setenv SSH_AUTH_SOCK /tmp/ssh-xNYNtyGM/agent.42177; > setenv SSH_AGENT_PID 42186; > echo Agent pid 42186; > $ ssh-add > Could not open a connection to your authentication agent. Now that you know what it is, you should probably read the man page more carefully. Basically, ssh-agent's output is supposed to be evaluated by your shell. Information about its existance is conveyed to ssh(1) and ssh-add(1) via environment variables. The short fix is to do: eval `ssh-agent`. The longer way is to read the man page. Hope this helps Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message