RHEL 8.6 Server Cannot ssh into the server without upgrading openssh-server

Latest response

Hi, I am a new user of RHEL.
I found that I cannot log into my RHEL 8.6 server without upgrading the SSH server on it. Of course, I tried to restart sshd and do other things, but all failed. But after upgrading the openssh-server package using dnf, it works again.
I wonder whether it is designed so? How can I know when I should upgrade some basic packages?

Responses

Hi Zheng,

Best practice is to upgrade all packages on a regular basis generally ... You are using an older version of RHEL (8.6).
The latest stable release is 8.7 - so it's recommended to run sudo dnf upgrade --refresh as soon as possible. :)

Regards,
Christian

Hi, Christian. Thanks for your suggestion. But my concern is that upgrading the whole system will make some 3rd party software work incorrectly.

Hi Zheng,

Most probably that won't be the case ... What works on RHEL 8.6 will work on RHEL 8.7 as well. We talk about a
minor point release. Your concerns would be more relevant if you would upgrade to the major edition RHEL 9. :)

Regards,
Christian

But it is really weird that I didn't upgrade ssh, and then suddenly, I cannot ssh into the system without any notification.

Hi Zheng,

Don't know what exactly caused this, but it could have to to do with a security update that
hasn't been applied. Please bare in mind that the system is unsafe to use. There's a reason
why it's generally recommended to keep all systems updated to the latest stable version. :)

Regards,
Christian

Have you checked permission before and after the upgrade? Not having the .ssh directory set to 700 can cause issues like this.

I have updated many systems from 8.0, 8.1 etc etc (many now on 8.7) and never had an issue with ssh.

Hi Zheng,

If you want to keep 8.6 just install security upgrades:
$ dnf updateinfo list --security --all $ dnf upgrade --security

Regards, Tibor