From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id F23333858032 for ; Mon, 5 Feb 2024 13:26:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F23333858032 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F23333858032 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707139603; cv=none; b=wfRJzssXIfAzh2yPv1J9s8uklQbJxDFOjtTPqbxdj8Fl1q1Z6vaMmGSkcxURCDaoVrS4jccY9h2M7xLjJMtZuaNOGR6jxAbTEaDoVpse7KXUTtcxvKkOTHIXEwcZ4WlhrhSyOhLPCj3stl7FbYBkMFOixpylAytcRz+HXF0LMqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707139603; c=relaxed/simple; bh=vYD1Fet6FXwgEREWE/x68OGVQBto+xjD8xeFfPPWin8=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=tBRPeDvymmMpdgkwPcpqkf05F0R0bX24Xcrs5U0TmPxoAthqNNydoboqFbcciQ9VD9ln3uO3LlpuGAZgIObGEUfkNJ7h1mJ8Ok1kuX4xHt4jDvM5xVs/089D4hkLFwbNp5/glqcYpKrdX9D25RcnNtAV5yfsb5KIVqSfW4MAqc4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707139598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y43R3mwPU5uK+C/9kfCYKc/lERMpj8xDedXCWHBXoHI=; b=ZpNLd90R6mUNypXW9ADoHWNZvrr5s51dDAAG67QlG2QIajISiUv/EBbu/vF6FHXZJdvNAV 56Lh2nmfClvdAlE3FtP0Ii0yMlWtXtEoK6kNX13pNj/9YThr2BHjYPzvemclW0xKo+tja1 oDl8K2Obu8th2/OTUht1DU81GKGwO7s= Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-511-PfOXevLPOuCVzonPvrCF7g-1; Mon, 05 Feb 2024 08:26:36 -0500 X-MC-Unique: PfOXevLPOuCVzonPvrCF7g-1 Received: by mail-il1-f199.google.com with SMTP id e9e14a558f8ab-363be67c17aso7460685ab.0 for ; Mon, 05 Feb 2024 05:26:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707139595; x=1707744395; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y43R3mwPU5uK+C/9kfCYKc/lERMpj8xDedXCWHBXoHI=; b=U+mfGrscTA35VU46k0ugGxVZ9wBLABbznH6HgWS7qV9izv0jfEWZOKuVm8H49fzD1h gKjFRlYJWwxyLWnRxc8YD2JcW8CqEGJ5y7BzfvhZIaFPhCprD0h+Z7ldkSVSqmsJqRid DnPTl9qzwyUQWmEiGyTSbC7MpksDv8IydT8okUg0nvqE0Zr8eOnvfpROhvn4acUiIGtf aVltfqcaNeQb0osvC6zc/o4dAB6uXzgnpRs1jXFLu/jYJfJubulbPLSkkVV9K0sBOKZm PAuuSuwA/E3aEfuSrsdFfXortXvOXYSHDV/vHI7gS01iq+0w6Mh4rjbpdryYixlGa4op A7+g== X-Gm-Message-State: AOJu0YyXw2sIKwBrb+KosYlghyGWomc9dpPW/fXBp+Y1zQVMH/oFqcCJ /nbOiq9YudfCzgfQq66V/r8xM8chaHNzfZ6hT+lGp+FlleAaxPrha9IlxOCDrX0NC5LxIhpPArz YxpPzwce3RuJKjmFvLquUZ+tmEtYSEMn33WUG0E+NiOFR90VZSA/YLFkN1NdzD3lfJQmGE9neS+ GvzO1K4qtD4WR3ZUz08spxl0p+3qGaNeXi1hVAx+BVUQ== X-Received: by 2002:a05:6e02:1d92:b0:363:c500:6855 with SMTP id h18-20020a056e021d9200b00363c5006855mr3278927ila.6.1707139595343; Mon, 05 Feb 2024 05:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEf5EaASBC+D3uvBFJKMpr6z2/I891kmT77HBp2t+77RuHbHGUbq9JUxf6WIour3RKqkivpFbW04z3DalFLKwg= X-Received: by 2002:a05:6e02:1d92:b0:363:c500:6855 with SMTP id h18-20020a056e021d9200b00363c5006855mr3278918ila.6.1707139594899; Mon, 05 Feb 2024 05:26:34 -0800 (PST) MIME-Version: 1.0 References: <0840A107-591F-4BF6-92FB-99C276845D4B@elastic.org> <20240204203126.GK1583@gnu.wildebeest.org> In-Reply-To: <20240204203126.GK1583@gnu.wildebeest.org> From: Jason Merrill Date: Mon, 5 Feb 2024 08:26:23 -0500 Message-ID: Subject: Re: Bad server host key: Invalid key length To: Mark Wielaard Cc: "Frank Ch. Eigler via Overseers" , "Frank Ch. Eigler" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="00000000000022ebac0610a2699f" X-Spam-Status: No, score=-15.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000022ebac0610a2699f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 4, 2024 at 3:31=E2=80=AFPM Mark Wielaard wrote: > Hi, > > On Sun, Feb 04, 2024 at 09:20:33PM +0100, Frank Ch. Eigler via Overseers > wrote: > > > > > =EF=BB=BFI just upgraded my laptop to Fedora 39 CSB, and now ssh to s= ourceware > is > > > rejected with the above error message thanks to the Fedora > crypto-policies > > > openssh.config. I can work around this easily enough by setting > > > RequiredRSASize to 1024 in my .ssh/config, but surely I'm not the > first to > > > run into this? > > > > You may be the second. Nuke all the sourceware references in your > .ssh/known_hosts and try again. > > Yeah, this is a misleading ssh client warning/error: > https://inbox.sourceware.org/20230308105633.GI22818@gnu.wildebeest.org/ > > =3D openssh update produces misleading invalid key length warning > > Connecting to sourceware through ssh with a newer openssh or crypto > policy might produce a misleading warning about the key length being > too short: > > Bad server host key: Invalid key length > > Please don't try to replace your ssh key, there is nothing wrong with > it. The issue is that you might have an old server key in your > ~/.ssh/known_hosts file. Simply remove it and reconnect to get the new > server key: > > ssh-keygen -R sourceware.org > ssh-keygen -R cygwin.com > ssh-keygen -R gcc.gnu.org > > See also https://bugzilla.redhat.com/show_bug.cgi?id=3D2164016 Thanks for pointing me in the right direction, what a terrible diagnostic. Jason --00000000000022ebac0610a2699f--