From owner-freebsd-questions@FreeBSD.ORG Wed Apr 20 20:41:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3F6B1065675 for ; Wed, 20 Apr 2011 20:41:21 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 88E278FC08 for ; Wed, 20 Apr 2011 20:41:21 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1QCeC8-000NFx-2U; Wed, 20 Apr 2011 16:40:20 -0400 Received: from v104.entropy.prv (v104.entropy.prv [192.168.1.104]) by cube.entropy.prv (Postfix) with ESMTP id 1AC9E4D212CD; Wed, 20 Apr 2011 16:41:15 -0400 (EDT) Message-ID: <4DAF44EB.90002@FreeBSD.org> Date: Wed, 20 Apr 2011 16:41:15 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: =?ISO-8859-15?Q?Michael_Gr=FCnewald?= References: <4DAEC1A3.8070305@yahoo.fr> In-Reply-To: <4DAEC1A3.8070305@yahoo.fr> X-Enigmail-Version: 1.1.1 OpenPGP: id=1C940290 X-SA-Exim-Connect-IP: 68.189.245.235 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: ** X-Spam-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: FreeBSD questions Subject: Re: Subversion over SSH works through GIT but not with SVN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2011 20:41:21 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4/20/11 7:21 AM, Michael Gr=FCnewald wrote: > Hi all, >=20 > I have recently discovered that by subversion client (1.16_2) is not > able any more to access my subversion accounts over svn+ssh (with key > based authentication). It seems very odd to me, because in the same > time git can access these accounts (with the git svn command) and commi= t > to these repositories! >=20 > I am here absolutely clueless, so I would welcome your insights and you= r > help! >=20 > I set up `SVN_SSH' to `ssh -vv' in order to get a little more feedback > than the `connexion unexpectedly closed' that subversion gave me. Here > is an exceirpt of the successful svn+ssh authentication achieved by git > svn: >=20 > debug1: SSH2_MSG_SERVICE_ACCEPT received > debug2: key: /home/michael/.ssh/id_rsa (0x801a61680) > debug2: key: /home/michael/.ssh/id_dsa (0x0) > debug1: Authentications that can continue: publickey > debug1: Next authentication method: publickey > debug1: Offering public key: /home/michael/.ssh/id_rsa > debug2: we sent a publickey packet, wait for reply > debug1: Server accepts key: pkalg ssh-rsa blen 277 >=20 > on the pure svn side I have instead >=20 > debug1: SSH2_MSG_SERVICE_ACCEPT received > debug2: key: /home/michael/.ssh/id_rsa (0x801a61660) > debug2: key: /home/michael/.ssh/id_dsa (0x0) > debug1: Authentications that can continue: publickey > debug1: Next authentication method: publickey > debug1: Offering public key: /home/michael/.ssh/id_rsa > debug2: we sent a publickey packet, wait for reply > debug1: Authentications that can continue: publickey > debug1: Trying private key: /home/michael/.ssh/id_dsa > debug2: we did not send a packet, disable method >=20 > (this is the point were the two transcripts start to disagree). I do > not know what is the hex value after the name of the file containing my > private key, but it semms weird to me that the two runs give here > different results! Do you see a symptom related to my problem? Hi Michael, I think the hex value discrepancy is significant, but I'm not yet sure why the value changes. The private key filename looks the same. When I run into problems like this, I first start by eliminating the application connecting through ssh and just try a standard ssh connection like so: ssh -vvv -l You may also want to add "-i ~/.ssh/id_rsa" to the command line to see if that changes anything. If you authenticate successfully with that command, then check the ~/.subversion/config file for suspect entries in the [tunnels] section. Finally, if all else fails, I run commands through truss or strace to see if there are any strange errors generated by system calls, like a missing library or config file, or an unexpected chdir() or chroot(). Hope that helps, Greg - --=20 Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2vROsACgkQ0sRouByUApDzZwCfaQ1TPWXr4YFNKRhE792XXR3o LBMAnjWrw8Y+DqZnAz9YJqP/Qh9lS7uX =3DwtcF -----END PGP SIGNATURE-----