Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: Mark Himsley To: cygwin AT cygwin DOT com Subject: Re: cvs/ssh and rsa based authentication Date: Wed, 05 Dec 2001 12:35:34 +0000 Message-ID: References: <3C0E10A9 DOT DF6031 AT informatik DOT uni-ulm DOT de> In-Reply-To: <3C0E10A9.DF6031@informatik.uni-ulm.de> X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This is my guess: Your Cygwin ssh client and the server you are connecting to have probably decided to use SSH2 protocol but you have not appended your ~/.ssh/id_dsa.pub to the servers ~/.ssh/authorized_keys2. Either stick to SSH1 by using the -1 option to the ssh client or transfer contents of ~/.ssh/id_dsa.pub to the servers ~/.ssh/authorized_keys2. I guess this because its happened to me. You should be able to debug this by using the -v option in ssh. Good luck. On Wed, 05 Dec 2001 13:18:49 +0100 you wrote: >Hi all, > >I've seen that there were already several discussions about >cvs and ssh, but I have a so far undiscussed problem >- maybe someone can help me. > >I already know how to use cvs in combination with ssh, >and it works fine. Whenever you send an cvs command, >then one of the available autentication methods for ssh >is invoked. One method is password authentication. This is >very annoying, if you use cvs with ssh, because you have >to type your ssh password each time you send a cvs >command. > >So I tried to use the rsa based authentication method for >ssh. I generated a public/secret key pair (without a passphrase) >and put the public key into the ~/.ssh/autorized_keys file on >the cvs server. The RSAAutentication option in the sshd_config >file on the server is set to yes. Everything works fine if I try to >login from a linux client - the rsa authentication works, and I'm >not asked for a password. > >Unfortunately the same thing doesn't work, if I login to the >same server from a Windows 2000 client using Cygwin. >Although I have created another public/secret key pair on >the Windows 2000 system and put the public key into the >~/.ssh/autorized_keys file on the cvs server, I'm still asked >for my ssh password, each time I send a cvs command or >each time I try to login to the server via ssh directly. This >happens even if I use the ssh option -i (with which you can >specify the path to your secret key directly). > >The strangest thing is: I've downloaded another ssh client program >for Microsoft Windows ( >http://www.tu-bs.de/rz/sysadmin/ssh/dos/ssh-1_2_14-win32bin.zip), >and if I use this ssh client in combination with WinCVS 1.2, then >it works - I'm not asked for a password. >Now it gets very confusing: If I use the same ssh client not in >combination with WinCVS, then I'm asked for the password again! > >Has anybody any idea, how I can get rid of this password checking? > >-- >Andreas Schorr -- Mark Himsley In Acton -- 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/