RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1774233 - Upgrading from 8.0 to 8.1 temporarily breaks sshd due to CASignatureAlgorithms
Summary: Upgrading from 8.0 to 8.1 temporarily breaks sshd due to CASignatureAlgorithms
Keywords:
Status: CLOSED DUPLICATE of bug 1772475
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: crypto-policies
Version: 8.1
Hardware: Unspecified
OS: Linux
medium
high
Target Milestone: rc
: 8.0
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-19 20:33 UTC by Ravindra Patil
Modified: 2023-09-07 21:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-20 08:15:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ravindra Patil 2019-11-19 20:33:14 UTC
Description of problem:

We've started upgrading our 8.0 test systems to 8.1, and have hit the same issue on all of them with sshd crashing out with the error

command-line: line 0: Bad configuration option: CASignatureAlgorithms

In most cases, that's left systems which are being upgraded without ability to ssh for ~20 minutes while the number of packages being updated in 8.1. 

While tried to ssh its reporting following error for 'casignaturealgorithms' option 

[root@rhel8 ~]# ssh rhel8
/etc/crypto-policies/back-ends/openssh.config: line 6: Bad configuration option: casignaturealgorithms
/etc/crypto-policies/back-ends/openssh.config: terminating, 1 bad configuration options

Service was running but was not able to perform ssh.

[root@rhel8 ~]# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-11-20 01:53:46 IST; 1min 48s ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 2909 (sshd)

This is critical issue, as users should be allowed to perform ssh while the upgrade is in progress. 

That keeps happening until both libssh and crypto-policies have been updated (libssh presumably removed a CASignatureAlgorithm that crypto-policies is specifying in /etc/crypto-policies/back-ends/opensshserver.config).

Version-Release number of selected component (if applicable):
20181217-6.git9a35207.el8.noarch

How reproducible:
Start upgrade from RHEL 8.0 to 8.1
# yum update -y

Then try doing ssh from the same system to any other machine
# ssh <server-ip>

Steps to Reproduce:
1. Login to RHEL 8.0 
2. Upgrade from RHEL 8.0 to 8.1
3. Try to perform ssh

Actual results:
sshd crashes with below output

/etc/crypto-policies/back-ends/openssh.config: line 6: Bad configuration option: casignaturealgorithms
/etc/crypto-policies/back-ends/openssh.config: terminating, 1 bad configuration options


Expected results:
SSHD should work fine. 

Additional info:
Service was running but failed due to bad configuration option error for ' CASignatureAlgorithms'

After sometime was able to ssh again when both packages libssh and crypto-policies were updated.


Note You need to log in before you can comment on or make changes to this bug.