3

I recently updated a Ubuntu system, and then discovered that the SSH functionality I was employing was no longer supported in the updated version.

How do I revert the sshd.service to the previous release?

(Yes, I do understand that the older sushi needs updated, and that will happen as well)

I tried the work around with the following additions on the /etc/ssh/ssh_config on the client:

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

But I still see:

debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/its_demo2/.ssh/id_rsa.pub RSA SHA256:Ml5N2i3iOCN04zqjnpT1y7dQvKOQZT9zsOT5GPE5KFk explicit
debug1: send_pubkey_test: no mutual signature algorithm
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Artur Meinild
  • 26,018

1 Answers1

5

I had a problem connecting to older devices, and I made it work in Ubuntu 22.04 with OpenSSH 8.9 / OpenSSL 3.0.2 by adding the following lines in the Host section of /etc/ssh/ssh_config on the client side:

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

This will restore functionality of the legacy RSA SHA-1 hash algorithm for the SSH client.

Note of caution: Be aware that this will potentially make connections less secure (but still to the level of Ubuntu 20.04).

Artur Meinild
  • 26,018