X-Spam-Check-By: sourceware.org Message-ID: <83c75fec0612210440g681bb6c6q475fcce58131ab99@mail.gmail.com> Date: Thu, 21 Dec 2006 07:40:11 -0500 From: "burning shadow" To: cygwin AT cygwin DOT com Subject: Re: ssh asks for key passphrase every time In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <83c75fec0612201145h436a6b04i2740cce0e5b669db AT mail DOT gmail DOT com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Thank you very much. You were right. :) On 12/20/06, Robert McKay wrote: > On 12/20/06, burning shadow 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/