From owner-freebsd-git@freebsd.org Wed Apr 7 09:45:46 2021 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5CA365D17B5 for ; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFff2264nz4m1f for ; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) (envelope-from philip@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 483C95D17B4; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) Delivered-To: git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 480865D188E for ; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFff21Zj8z4m3M; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from weatherwax.trouble.is (weatherwax.trouble.is [46.235.227.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "weatherwax.trouble.is", Issuer "R3" (verified OK)) (Authenticated sender: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 12F8B266C6; Wed, 7 Apr 2021 09:45:46 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from rincewind.trouble.is (rincewind.trouble.is [IPv6:2a01:4f9:2a:1715::1:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "rincewind.trouble.is", Issuer "R3" (verified OK)) by weatherwax.trouble.is (Postfix) with ESMTPS id 4FFff12B11z27nS; Wed, 7 Apr 2021 09:45:45 +0000 (UTC) Received: by rincewind.trouble.is (Postfix, authenticated sender philip) id 4FFfdz4G8fz4pgZ; Wed, 7 Apr 2021 09:45:43 +0000 (UTC) From: Philip Paeps To: Thierry Thomas Cc: git@freebsd.org Subject: Re: git@git.freebsd.org: Permission denied (publickey) Date: Wed, 07 Apr 2021 17:45:39 +0800 X-Clacks-Overhead: GNU Terry Pratchett X-Mailer: MailMate (1.14r5790) Message-ID: <5A79804B-BFAA-449E-AA79-30FFAA739D23@freebsd.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; markup=markdown X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 09:45:46 -0000 On 2021-04-06 23:16:11 (+0800), Thierry Thomas wrote: > Trying to push my first commit, I get this error: > > git@git.freebsd.org: Permission denied (publickey). > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > > Any clue? For the archives: this happened to me when I had my .git/config pushurl configured as git.FreeBSD.org but my .ssh/config Host configured as *.freebsd.org. Making the case in .git/config match the case in .ssh/config made the problem go away. Subtle. :) Philip -- Philip Paeps Senior Reality Engineer Alternative Enterprises