Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

21 May, 2024: Computers section is temporarily disabled for maintenance. It will take several days before it's back.


computers / comp.sys.raspberry-pi / Re: SSH no longer works with RSA keys.

SubjectAuthor
* SSH no longer works with RSA keys.Pancho
`* Re: SSH no longer works with RSA keys.Grant Taylor
 `* Re: SSH no longer works with RSA keys.A. Dumas
  +* Re: SSH no longer works with RSA keys.Grant Taylor
  |`* Re: SSH no longer works with RSA keys.A. Dumas
  | +- Re: SSH no longer works with RSA keys.Grant Taylor
  | `* Re: SSH no longer works with RSA keys.Theo
  |  +- Re: SSH no longer works with RSA keys.A. Dumas
  |  `* Re: SSH no longer works with RSA keys.Joe Beanfish
  |   `* Re: SSH no longer works with RSA keys.A. Dumas
  |    `* Re: SSH no longer works with RSA keys.Joe Beanfish
  |     `* Re: SSH no longer works with RSA keys.Pancho
  |      `* Re: SSH no longer works with RSA keys.Richard Kettlewell
  |       +- Re: SSH no longer works with RSA keys.Pancho
  |       `* Re: SSH no longer works with RSA keys.druck
  |        `- Re: SSH no longer works with RSA keys.Pancho
  `* Re: SSH no longer works with RSA keys.Richard Kettlewell
   `- Re: SSH no longer works with RSA keys.Tauno Voipio

1
SSH no longer works with RSA keys.

<taqffv$2rotg$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5609&group=comp.sys.raspberry-pi#5609

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: SSH no longer works with RSA keys.
Date: Fri, 15 Jul 2022 02:22:07 +0100
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <taqffv$2rotg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Jul 2022 01:22:07 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="d2ebff559d1b0fd25e7e754e9f101e58";
logging-data="3007408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/969inFj2w6xaCzwRF2v2wrkgeBXKII/I="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:uPd+p2fhXNyODJw5pqedDDuXSLM=
Content-Language: en-GB
 by: Pancho - Fri, 15 Jul 2022 01:22 UTC

Apparently, RSA is insecure, so some time ago it was deprecated for use
with SSH. It is now actually disabled as of Ubuntu 22.04.

All of which I only discovered after upgrading my rPi to Ubuntu 22.04,
i.e I was left scratching my head, figuring out why my long term
existing SSH RSA key was now being rejected.

The solution was to generate a new key pair using Ed25519 instead of RSA.

If it has already changed for Ubuntu, presumably Pi OS will soon follow.

Re: SSH no longer works with RSA keys.

<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5610&group=comp.sys.raspberry-pi#5610

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Thu, 14 Jul 2022 20:12:48 -0600
Organization: TNet Consulting
Message-ID: <taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
References: <taqffv$2rotg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Jul 2022 23:12:26 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="31551"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <taqffv$2rotg$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Fri, 15 Jul 2022 02:12 UTC

On 7/14/22 7:22 PM, Pancho wrote:
> Apparently, RSA is insecure, so some time ago it was deprecated for use
> with SSH. It is now actually  disabled as of Ubuntu 22.04.

Is it truly disabled? Or is it just the new default of not using it?

Check out the OpenSSH Legacy Options page. I've been able to re-enable
support for older methods using command line options / config file tweaks.

Link - OpenSSH: Legacy Options
- https://www.openssh.com/legacy.html

--
Grant. . . .
unix || die

Re: SSH no longer works with RSA keys.

<taqrau$2vfs3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5611&group=comp.sys.raspberry-pi#5611

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Fri, 15 Jul 2022 04:44:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <taqrau$2vfs3$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Jul 2022 04:44:14 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e961eff0b21ed117ef4b1f4767f49423";
logging-data="3129219"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++ct0cHCXh0iWr22ppn4ztsbGwdwHpMuc="
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:Ps5M45IX2iVelg2qMxOOtP9RGZ0=
sha1:grZkc9IQfoeEFy4D2l+Y37WNeJY=
 by: A. Dumas - Fri, 15 Jul 2022 04:44 UTC

Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 7/14/22 7:22 PM, Pancho wrote:
>> Apparently, RSA is insecure, so some time ago it was deprecated for use
>> with SSH. It is now actually  disabled as of Ubuntu 22.04.
>
> Is it truly disabled?

It definitely isn't. The SHA1 variant is. If you generate a new pair it
will use SHA2 by default, I believe (can't check now but had no trouble
generating one when setting up 22.04, without specifying the algorithm). If
you want to be explicit, use "ssh-keygen -t rsa-sha2-512 -b 2048" (good
enough, really, and 4096 will take much longer on a Pi).

SHA1 support can be re-enabled in /etc/ssh/ssh_config with
"PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.

Re: SSH no longer works with RSA keys.

<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5612&group=comp.sys.raspberry-pi#5612

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Thu, 14 Jul 2022 23:12:28 -0600
Organization: TNet Consulting
Message-ID: <taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Jul 2022 02:12:06 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="2917"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <taqrau$2vfs3$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Fri, 15 Jul 2022 05:12 UTC

On 7/14/22 10:44 PM, A. Dumas wrote:
> SHA1 support can be re-enabled in /etc/ssh/ssh_config with
> "PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.

You shouldn't need to reboot. You should be able to restart the SSH
daemon independently, without a reboot.

--
Grant. . . .
unix || die

Re: SSH no longer works with RSA keys.

<tarfal$31cud$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5614&group=comp.sys.raspberry-pi#5614

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Fri, 15 Jul 2022 10:25:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <tarfal$31cud$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Jul 2022 10:25:25 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e961eff0b21ed117ef4b1f4767f49423";
logging-data="3191757"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vCj94qwiVdPr3NMs8Xb2OBbTYx2DyEe8="
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:BJEyp3JZa5TBQ1cyWGkQZrYdBv4=
sha1:I4vM2iMqQfSzgPaNxPUvXWVmsSA=
 by: A. Dumas - Fri, 15 Jul 2022 10:25 UTC

Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 7/14/22 10:44 PM, A. Dumas wrote:
>> SHA1 support can be re-enabled in /etc/ssh/ssh_config with
>> "PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.
>
> You shouldn't need to reboot. You should be able to restart the SSH
> daemon independently, without a reboot.

Well, of course, but if a user can't even google their problem and a
possible solution, then restarting a service might also be too much to ask.
Reboot is much easier and also works ¯\_(ツ)_/¯

Re: SSH no longer works with RSA keys.

<tars4s$3fc$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5616&group=comp.sys.raspberry-pi#5616

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Fri, 15 Jul 2022 11:04:34 -0600
Organization: TNet Consulting
Message-ID: <tars4s$3fc$1@tncsrv09.home.tnetconsulting.net>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Jul 2022 14:04:12 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="3564"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <tarfal$31cud$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Fri, 15 Jul 2022 17:04 UTC

On 7/15/22 4:25 AM, A. Dumas wrote:
> Well, of course, but if a user can't even google their problem and a
> possible solution, then restarting a service might also be too much
> to ask. Reboot is much easier and also works ¯\_(ツ)_/¯

Sometimes I really hate it when people are correct. This is one of
those times. *HEAVYsigh*

--
Grant. . . .
unix || die

Re: SSH no longer works with RSA keys.

<8Qj*IFlTy@news.chiark.greenend.org.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5635&group=comp.sys.raspberry-pi#5635

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: theom+news@chiark.greenend.org.uk (Theo)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: 16 Jul 2022 16:55:52 +0100 (BST)
Organization: University of Cambridge, England
Message-ID: <8Qj*IFlTy@news.chiark.greenend.org.uk>
References: <taqffv$2rotg$1@dont-email.me> <taq7sq$upv$1@tncsrv09.home.tnetconsulting.net> <taqrau$2vfs3$1@dont-email.me> <taqidm$2r5$1@tncsrv09.home.tnetconsulting.net> <tarfal$31cud$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229";
logging-data="20088"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-15-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([212.13.197.229])
 by: Theo - Sat, 16 Jul 2022 15:55 UTC

A. Dumas <alexandre@dumas.fr.invalid> wrote:
> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> > On 7/14/22 10:44 PM, A. Dumas wrote:
> >> SHA1 support can be re-enabled in /etc/ssh/ssh_config with
> >> "PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.
> >
> > You shouldn't need to reboot. You should be able to restart the SSH
> > daemon independently, without a reboot.
>
> Well, of course, but if a user can't even google their problem and a
> possible solution, then restarting a service might also be too much to ask.
> Reboot is much easier and also works ¯\_(ツ)_/¯

Maybe, although:

sudo service ssh reload

(or 'sudo service ssh restart')

isn't hard. It's more complicated to edit the config file.

Theo

Re: SSH no longer works with RSA keys.

<87pmi2ssv8.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5637&group=comp.sys.raspberry-pi#5637

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Mon, 18 Jul 2022 09:54:51 +0100
Organization: terraraq NNTP server
Message-ID: <87pmi2ssv8.fsf@LkoBDZeT.terraraq.uk>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="9194"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:4CdVSKefd+FMuHK+jzy6rT/3O9U=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Mon, 18 Jul 2022 08:54 UTC

A. Dumas <alexandre@dumas.fr.invalid> writes:
> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
>> On 7/14/22 7:22 PM, Pancho wrote:
>>> Apparently, RSA is insecure, so some time ago it was deprecated for use
>>> with SSH. It is now actually  disabled as of Ubuntu 22.04.
>>
>> Is it truly disabled?
>
> It definitely isn't. The SHA1 variant is. If you generate a new pair it
> will use SHA2 by default, I believe (can't check now but had no trouble
> generating one when setting up 22.04, without specifying the
> algorithm).

RSA keys are not bound to a particular signature algorithm, that is a
separate piece of configuration.

> If you want to be explicit, use "ssh-keygen -t rsa-sha2-512 -b 2048"
> (good enough, really, and 4096 will take much longer on a Pi).

“ssh-keygen -t rsa” is sufficient.

--
https://www.greenend.org.uk/rjk/

Re: SSH no longer works with RSA keys.

<tb3trb$dsqa$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5638&group=comp.sys.raspberry-pi#5638

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Mon, 18 Jul 2022 15:22:19 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <tb3trb$dsqa$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me>
<8Qj*IFlTy@news.chiark.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Jul 2022 15:22:19 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0cf72a56f916ed31845d21bb1750a48d";
logging-data="455498"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fc4dD0PXCUb3TSbaepbcJpXh6YF0FNfM="
User-Agent: NewsTap/5.5 (iPhone/iPod Touch)
Cancel-Lock: sha1:tdpBKqArD8DbpLPyOCr8IaFElvQ=
sha1:mv591ZpoCoOJLF2hLEFveiV4EgA=
 by: A. Dumas - Mon, 18 Jul 2022 15:22 UTC

Theo <theom+news@chiark.greenend.org.uk> wrote:
> A. Dumas <alexandre@dumas.fr.invalid> wrote:
>> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
>>> On 7/14/22 10:44 PM, A. Dumas wrote:
>>>> SHA1 support can be re-enabled in /etc/ssh/ssh_config with
>>>> "PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.
>>>
>>> You shouldn't need to reboot. You should be able to restart the SSH
>>> daemon independently, without a reboot.
>>
>> Well, of course, but if a user can't even google their problem and a
>> possible solution, then restarting a service might also be too much to ask.
>> Reboot is much easier and also works ¯\_(ツ)_/¯
>
> Maybe, although:
>
> sudo service ssh reload
>
> (or 'sudo service ssh restart')
>
> isn't hard. It's more complicated to edit the config file.

You see, I would say force-reload, just to be sure (reloads if possible,
otherwise restarts). But also, I am not sure if any other services depend
on that config change. Probably not, but again, just to be sure... Is every
service completely self-contained under systemd? I'm not an admin so I
don't know. If I were behind the keyboard I would try to reload and test if
it works. Ah well.

Re: SSH no longer works with RSA keys.

<tb43nd$fe16$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5639&group=comp.sys.raspberry-pi#5639

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tauno.voipio@notused.fi.invalid (Tauno Voipio)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Mon, 18 Jul 2022 20:02:34 +0300
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <tb43nd$fe16$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me> <87pmi2ssv8.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Jul 2022 17:02:37 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="931d598a61f6cf441e2b32936d98ef97";
logging-data="505894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7dkf4iVVGpFeb6RTu+X/5MdhBWJDV2m4="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.11.0
Cancel-Lock: sha1:QsOTbWGfjNRmCqHh8fo/q6g+wdg=
In-Reply-To: <87pmi2ssv8.fsf@LkoBDZeT.terraraq.uk>
 by: Tauno Voipio - Mon, 18 Jul 2022 17:02 UTC

On 18.7.22 11.54, Richard Kettlewell wrote:
> A. Dumas <alexandre@dumas.fr.invalid> writes:
>> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
>>> On 7/14/22 7:22 PM, Pancho wrote:
>>>> Apparently, RSA is insecure, so some time ago it was deprecated for use
>>>> with SSH. It is now actually  disabled as of Ubuntu 22.04.
>>>
>>> Is it truly disabled?
>>
>> It definitely isn't. The SHA1 variant is. If you generate a new pair it
>> will use SHA2 by default, I believe (can't check now but had no trouble
>> generating one when setting up 22.04, without specifying the
>> algorithm).
>
> RSA keys are not bound to a particular signature algorithm, that is a
> separate piece of configuration.
>
>> If you want to be explicit, use "ssh-keygen -t rsa-sha2-512 -b 2048"
>> (good enough, really, and 4096 will take much longer on a Pi).
>
> “ssh-keygen -t rsa” is sufficient.

OpenSSH changed recently the private key encoding format, and
many SSH servers or clients are not happy with the new one.

The keys are in text format. Look at ~/.ssh/id_rsa if it exists.
If the file starts with:

-----BEGIN OPENSSH PRIVATE KEY-----

it should be converted:

cd ~/.ssh
cp id_rsa id_rsa.pem
ssh-keygen -p -m PEM -P "" -N "" -f ~/.ssh/id_rsa.pem

The private key in PEM format begins with:

-----BEGIN RSA PRIVATE KEY-----

Try the new key and if it works, replace id_rsa with it.

--

-TV

Re: SSH no longer works with RSA keys.

<tb44sj$bnus$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5640&group=comp.sys.raspberry-pi#5640

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: joebeanfish@nospam.duh (Joe Beanfish)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Mon, 18 Jul 2022 17:22:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <tb44sj$bnus$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Jul 2022 17:22:27 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="f89b6b90ea181bf387125577bc7fcfef";
logging-data="384988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+mVYnZUG7bNRYvFjSSEqeOR4gmsY93uMY="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:Ctj6RnONSPbTePOE0ICZK7R0q8g=
 by: Joe Beanfish - Mon, 18 Jul 2022 17:22 UTC

On Sat, 16 Jul 2022 16:55:52 +0100, Theo wrote:

> A. Dumas <alexandre@dumas.fr.invalid> wrote:
>> Grant Taylor <gtaylor@tnetconsulting.net> wrote:
>> > On 7/14/22 10:44 PM, A. Dumas wrote:
>> >> SHA1 support can be re-enabled in /etc/ssh/ssh_config with
>> >> "PubkeyAcceptedKeyTypes +ssh-rsa" and a reboot but it is indeed unsafe.
>> >
>> > You shouldn't need to reboot. You should be able to restart the SSH
>> > daemon independently, without a reboot.
>>
>> Well, of course, but if a user can't even google their problem and a
>> possible solution, then restarting a service might also be too much to ask.
>> Reboot is much easier and also works ¯\_(ツ)_/¯
>
> Maybe, although:
>
> sudo service ssh reload
>
> (or 'sudo service ssh restart')
>
> isn't hard. It's more complicated to edit the config file.
>

lol
Except that it's "service sshd", not "service ssh", so the user would
get an error and be confused. Or even better, they might have systemd.
That just reinforces that it's simpler for the unknowing to reboot.
The knowing likely don't need the instructions for how to restart the
service, just a reminder to do so.

Re: SSH no longer works with RSA keys.

<tb46fi$g4ol$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5641&group=comp.sys.raspberry-pi#5641

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: alexandre@dumas.fr.invalid (A. Dumas)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Mon, 18 Jul 2022 17:49:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 4
Message-ID: <tb46fi$g4ol$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me>
<8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Jul 2022 17:49:38 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="0911cfd8636137f79adda25699f4b4b6";
logging-data="529173"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1817yNgM0Pvn/cVpMXRq7dy6/IKu2c3COI="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:eHWz3pYIK++qFIX49geDaXMfRYs=
sha1:U9neAgSHVveBeYSFOhKKFn83xgY=
 by: A. Dumas - Mon, 18 Jul 2022 17:49 UTC

Joe Beanfish <joebeanfish@nospam.duh> wrote:
> Except that it's "service sshd", not "service ssh",

Nope, not on systemd at least where it should be ssh.

Re: SSH no longer works with RSA keys.

<tb6f0i$13k8v$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5644&group=comp.sys.raspberry-pi#5644

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: joebeanfish@nospam.duh (Joe Beanfish)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Tue, 19 Jul 2022 14:27:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <tb6f0i$13k8v$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Jul 2022 14:27:30 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="cbf48fc482af5c1703fab73752c8b4d1";
logging-data="1167647"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+i1llB2Kn2ob2yQTR6eEGapR2fsofEFfs="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:6nWzw6WtjQxW6z4U9rEFpk5754w=
 by: Joe Beanfish - Tue, 19 Jul 2022 14:27 UTC

On Mon, 18 Jul 2022 17:49:38 +0000, A. Dumas wrote:

> Joe Beanfish <joebeanfish@nospam.duh> wrote:
>> Except that it's "service sshd", not "service ssh",
>
> Nope, not on systemd at least where it should be ssh.

Depends on distro I guess. On CentOS, it's

# systemctl status ssh
Unit ssh.service could not be found.
# systemctl status sshd
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 974 (sshd)
CGroup: /system.slice/sshd.service
└─974 /usr/sbin/sshd -D

One more reason the reboot is the simpler instruction that always works
for a noob. :)

Re: SSH no longer works with RSA keys.

<tb6ggd$14fps$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5645&group=comp.sys.raspberry-pi#5645

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Tue, 19 Jul 2022 15:53:00 +0100
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <tb6ggd$14fps$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
<tb6f0i$13k8v$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Jul 2022 14:53:01 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="9c6ad726990aff58172c9262e0c7be73";
logging-data="1195836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3e1C1L5LAM/KyqB6+zD6DzF7quLjvCZA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:yi+1yBfbmRNRPWDU0H42FKMPcXs=
Content-Language: en-GB
In-Reply-To: <tb6f0i$13k8v$1@dont-email.me>
 by: Pancho - Tue, 19 Jul 2022 14:53 UTC

On 19/07/2022 15:27, Joe Beanfish wrote:
> On Mon, 18 Jul 2022 17:49:38 +0000, A. Dumas wrote:
>
>> Joe Beanfish <joebeanfish@nospam.duh> wrote:
>>> Except that it's "service sshd", not "service ssh",
>>
>> Nope, not on systemd at least where it should be ssh.
>
> Depends on distro I guess. On CentOS, it's
>
> # systemctl status ssh
> Unit ssh.service could not be found.
> # systemctl status sshd
> ● sshd.service - OpenSSH server daemon
> Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
> Docs: man:sshd(8)
> man:sshd_config(5)
> Main PID: 974 (sshd)
> CGroup: /system.slice/sshd.service
> └─974 /usr/sbin/sshd -D
>
> One more reason the reboot is the simpler instruction that always works
> for a noob. :)
>

For a noob wouldn't it just be easier to just bite the bullet, generate
new, more secure keys? Rather than debate how they should thwart the
will of OpenSSL and the complicit distro makers. :-)

But then perhaps a noob wouldn't have keys generated in 2014, although a
quick google suggests ssh-keygen only changed the default of RSA-SHA
from SHA1 to SHA2 in release OpenSSH 8.1/8.1p1 (2019-10-09), with the
warning introduced OpenSSH 7.7/7.7p1 (2018-04-02).

Anyway, thanks everyone for correcting me. I just hoped to save people
the trouble of doing the standard SSH key checks, before discovering the
software change.

Re: SSH no longer works with RSA keys.

<875yjss0aj.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5647&group=comp.sys.raspberry-pi#5647

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!aioe.org!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Wed, 20 Jul 2022 08:36:36 +0100
Organization: terraraq NNTP server
Message-ID: <875yjss0aj.fsf@LkoBDZeT.terraraq.uk>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
<tb6f0i$13k8v$1@dont-email.me> <tb6ggd$14fps$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="50264"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:daqqZtnwCJZZ9XPZ8pMNfXj2Hs0=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 20 Jul 2022 07:36 UTC

Pancho <Pancho.Jones@proton.me> writes:
> But then perhaps a noob wouldn't have keys generated in 2014, although
> a quick google suggests ssh-keygen only changed the default of RSA-SHA
> from SHA1 to SHA2 in release OpenSSH 8.1/8.1p1 (2019-10-09), with the
> warning introduced OpenSSH 7.7/7.7p1 (2018-04-02).

Existing RSA keys will work fine with SHA-2 signatures. Nobody needs to
generate new keys (unless they want to migrate away from RSA
entirely).

--
https://www.greenend.org.uk/rjk/

Re: SSH no longer works with RSA keys.

<tb8scg$1k6dv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5650&group=comp.sys.raspberry-pi#5650

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Wed, 20 Jul 2022 13:27:59 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <tb8scg$1k6dv$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
<tb6f0i$13k8v$1@dont-email.me> <tb6ggd$14fps$1@dont-email.me>
<875yjss0aj.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Jul 2022 12:28:00 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="f50a3be62a7c0f1e1e12eb10547717e0";
logging-data="1710527"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RkOTooejOfDzOaivUH4hqkes1xHNHmsc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:3GTTMnm8X3aORMZMYKtvwrX8L2g=
Content-Language: en-GB
In-Reply-To: <875yjss0aj.fsf@LkoBDZeT.terraraq.uk>
 by: Pancho - Wed, 20 Jul 2022 12:27 UTC

On 20/07/2022 08:36, Richard Kettlewell wrote:
> Pancho <Pancho.Jones@proton.me> writes:
>> But then perhaps a noob wouldn't have keys generated in 2014, although
>> a quick google suggests ssh-keygen only changed the default of RSA-SHA
>> from SHA1 to SHA2 in release OpenSSH 8.1/8.1p1 (2019-10-09), with the
>> warning introduced OpenSSH 7.7/7.7p1 (2018-04-02).
>
> Existing RSA keys will work fine with SHA-2 signatures. Nobody needs to
> generate new keys (unless they want to migrate away from RSA
> entirely).
>

OK, I think I finally get it! SHA-1 isn't part of the SSH-RSA key.

Whilst changing the key worked, I could also have fixed the problem by
upgrading my SSH client. A new SSH client would then negotiate SHA-2 in
the SSH connection handshake (or whatever it is called).

Sorry, I was somewhat mislead by:

<https://askubuntu.com/questions/1409105/ubuntu-22-04-ssh-the-rsa-key-isnt-working-since-upgrading-from-20-04>

But on second reading, I see the comment at the bottom by pimpo points
this out :-(.

Re: SSH no longer works with RSA keys.

<tb9n8r$1r0mu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5654&group=comp.sys.raspberry-pi#5654

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: news@druck.org.uk (druck)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Wed, 20 Jul 2022 21:06:49 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <tb9n8r$1r0mu$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
<tb6f0i$13k8v$1@dont-email.me> <tb6ggd$14fps$1@dont-email.me>
<875yjss0aj.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Jul 2022 20:06:51 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="e5f0fb7f4bc319b76ad4d0633b829729";
logging-data="1934046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fvRosmOXlkLu26SstiULk"
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:DdEDZ0Oo8IAVSEjStN4x/5afrFA=
X-Antivirus-Status: Clean
In-Reply-To: <875yjss0aj.fsf@LkoBDZeT.terraraq.uk>
Content-Language: en-GB
X-Antivirus: Avast (VPS 220720-4, 20/7/2022), Outbound message
 by: druck - Wed, 20 Jul 2022 20:06 UTC

On 20/07/2022 08:36, Richard Kettlewell wrote:
> Pancho <Pancho.Jones@proton.me> writes:
>> But then perhaps a noob wouldn't have keys generated in 2014, although
>> a quick google suggests ssh-keygen only changed the default of RSA-SHA
>> from SHA1 to SHA2 in release OpenSSH 8.1/8.1p1 (2019-10-09), with the
>> warning introduced OpenSSH 7.7/7.7p1 (2018-04-02).
>
> Existing RSA keys will work fine with SHA-2 signatures. Nobody needs to
> generate new keys (unless they want to migrate away from RSA
> entirely).

Thanks for clarifying that Richard.

---druck

Re: SSH no longer works with RSA keys.

<tbc7hn$2htj9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5658&group=comp.sys.raspberry-pi#5658

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Pancho.Jones@proton.me (Pancho)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: SSH no longer works with RSA keys.
Date: Thu, 21 Jul 2022 19:56:55 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <tbc7hn$2htj9$1@dont-email.me>
References: <taqffv$2rotg$1@dont-email.me>
<taq7sq$upv$1@tncsrv09.home.tnetconsulting.net>
<taqrau$2vfs3$1@dont-email.me>
<taqidm$2r5$1@tncsrv09.home.tnetconsulting.net>
<tarfal$31cud$1@dont-email.me> <8Qj*IFlTy@news.chiark.greenend.org.uk>
<tb44sj$bnus$1@dont-email.me> <tb46fi$g4ol$1@dont-email.me>
<tb6f0i$13k8v$1@dont-email.me> <tb6ggd$14fps$1@dont-email.me>
<875yjss0aj.fsf@LkoBDZeT.terraraq.uk> <tb9n8r$1r0mu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Jul 2022 18:56:55 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="575743d4b28e32d51d897a3d459298a0";
logging-data="2684521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19z746RWGOE33y4sIvyHl9b7K8RshTd07I="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.0
Cancel-Lock: sha1:uD12FPsl28dVKKzQYlflg3p5BSc=
In-Reply-To: <tb9n8r$1r0mu$1@dont-email.me>
Content-Language: en-GB
 by: Pancho - Thu, 21 Jul 2022 18:56 UTC

On 20/07/2022 21:06, druck wrote:
> On 20/07/2022 08:36, Richard Kettlewell wrote:
>> Pancho <Pancho.Jones@proton.me> writes:
>>> But then perhaps a noob wouldn't have keys generated in 2014, although
>>> a quick google suggests ssh-keygen only changed the default of RSA-SHA
>>> from SHA1 to SHA2 in release OpenSSH 8.1/8.1p1 (2019-10-09), with the
>>> warning introduced OpenSSH 7.7/7.7p1 (2018-04-02).
>>
>> Existing RSA keys will work fine with SHA-2 signatures. Nobody needs to
>> generate new keys (unless they want to migrate away from RSA
>> entirely).
>
> Thanks for clarifying that Richard.
>
> ---druck
>

To be clear... I think it was a correction, rather than a clarification.
I certainly hadn't understood the issue or that SHA-1 and SHA-2 are just
hash functions, like MD5. Functions whose domain is just the data being
hashed. There are even shell commands sha1sum and sha256sum, like the
old md5sum.

On balance, I think I prefer ED25519 to RSA for SSH. Both public and
private keys are smaller and hence easier to use.

Reading a few articles on the issue, it seems some of the people who
write articles on encryption also have some surprising misunderstandings.


computers / comp.sys.raspberry-pi / Re: SSH no longer works with RSA keys.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor