public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* Bad server host key: Invalid key length
@ 2024-02-04 18:29 Jason Merrill
  2024-02-04 20:20 ` Frank Ch. Eigler
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Merrill @ 2024-02-04 18:29 UTC (permalink / raw)
  To: Overseers mailing list

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]

I just upgraded my laptop to Fedora 39 CSB, and now ssh to sourceware 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?

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad server host key: Invalid key length
  2024-02-04 18:29 Bad server host key: Invalid key length Jason Merrill
@ 2024-02-04 20:20 ` Frank Ch. Eigler
  2024-02-04 20:31   ` Mark Wielaard
  0 siblings, 1 reply; 4+ messages in thread
From: Frank Ch. Eigler @ 2024-02-04 20:20 UTC (permalink / raw)
  To: Overseers mailing list; +Cc: Jason Merrill


> I just upgraded my laptop to Fedora 39 CSB, and now ssh to sourceware 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.

- FChE

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad server host key: Invalid key length
  2024-02-04 20:20 ` Frank Ch. Eigler
@ 2024-02-04 20:31   ` Mark Wielaard
  2024-02-05 13:26     ` Jason Merrill
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Wielaard @ 2024-02-04 20:31 UTC (permalink / raw)
  To: Frank Ch. Eigler via Overseers; +Cc: Frank Ch. Eigler, Jason Merrill

Hi,

On Sun, Feb 04, 2024 at 09:20:33PM +0100, Frank Ch. Eigler via Overseers wrote:
> 
> > I just upgraded my laptop to Fedora 39 CSB, and now ssh to sourceware 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/

= 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=2164016

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bad server host key: Invalid key length
  2024-02-04 20:31   ` Mark Wielaard
@ 2024-02-05 13:26     ` Jason Merrill
  0 siblings, 0 replies; 4+ messages in thread
From: Jason Merrill @ 2024-02-05 13:26 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: Frank Ch. Eigler via Overseers, Frank Ch. Eigler

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

On Sun, Feb 4, 2024 at 3:31 PM Mark Wielaard <mark@klomp.org> wrote:

> Hi,
>
> On Sun, Feb 04, 2024 at 09:20:33PM +0100, Frank Ch. Eigler via Overseers
> wrote:
> >
> > > I just upgraded my laptop to Fedora 39 CSB, and now ssh to sourceware
> 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/
>
> = 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=2164016


Thanks for pointing me in the right direction, what a terrible diagnostic.

Jason

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-05 13:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-04 18:29 Bad server host key: Invalid key length Jason Merrill
2024-02-04 20:20 ` Frank Ch. Eigler
2024-02-04 20:31   ` Mark Wielaard
2024-02-05 13:26     ` Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).