X-Spam-Check-By: sourceware.org
Message-ID: <83c75fec0612210440g681bb6c6q475fcce58131ab99@mail.gmail.com>
Date: Thu, 21 Dec 2006 07:40:11 -0500
From: "burning shadow" <burning.shadow@gmail.com>
To: cygwin@cygwin.com
Subject: Re: ssh asks for key passphrase every time
In-Reply-To: <c2888f8c0612201945g71475458o5f17cb5e7a6f072d@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <83c75fec0612201145h436a6b04i2740cce0e5b669db@mail.gmail.com> 	 <c2888f8c0612201945g71475458o5f17cb5e7a6f072d@mail.gmail.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thank you very much. You were right. :)

On 12/20/06, Robert McKay <robert@mckay.com> wrote:
> On 12/20/06, burning shadow <burning.shadow@gmail.com> wrote:
> > I have created identification key with passphrase (id_dsa). Now every
> > time I try to open ssh connection to any host, ssh asks for passphrase
> > for this key. I believed, ssh should ask for a passphrase only if host
> > wants to accept key. FreeBSD's ssh, for example, does it this way.
>
> This is because when the private key is encrypted (with the
> passphrase) ssh can't read it to tell whether the ssh server asked for
> it or not :-)
>
> To get around this issue ssh looks for the public key and uses that to
> determine whether or not it should bother decrypting the private key.
> It does this by checking all the .pub files in your .ssh directory and
> if it finds a match then it decrypts the corresponding private key.
> This only works if you've got the public key and it's named with the
> same prefix as the private key otherwise it will always ask for the
> passphrase to decrypt the private key.
>
> I'm guessing that this may be your issue.
>
> Cheers,
>
> Robert
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

