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 2007288 - Updates in sshd_config.anaconda
Summary: Updates in sshd_config.anaconda
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: lorax-templates-rhel
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Brian Lane
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-23 14:04 UTC by Jan Stodola
Modified: 2022-05-17 12:53 UTC (History)
1 user (show)

Fixed In Version: lorax-templates-rhel-9.0-25.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1872892
Environment:
Last Closed: 2022-05-17 12:38:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-98063 0 None None None 2021-09-23 14:05:18 UTC
Red Hat Issue Tracker RTT-3823 0 None None None 2021-10-06 08:24:03 UTC
Red Hat Issue Tracker RTT-3824 0 None None None 2021-10-06 08:24:08 UTC
Red Hat Product Errata RHBA-2022:2364 0 None None None 2022-05-17 12:38:33 UTC

Description Jan Stodola 2021-09-23 14:04:26 UTC
+++ This bug was initially created as a clone of Bug #1872892 +++

Description of problem:
While working on bug 1800697, the following updates to the sshd_config.anaconda file were mentioned (see bug 1800697#c23):

* RSAAuthentication is removed
* there is no configuration option KeepAlive
* XAuthLocation is default, Port is default, IgnoreRhosts is default,
  StrictModes is default so not needed to explicitly mention
  [asosedki: unless you explicitly wanted to pin them for some reason]
* PrintMotd should be off as it is printed from pam now

The content of the config file in RHEL-8.3:
[anaconda root@localhost ~]# cat /etc/ssh/sshd_config.anaconda 
Port 22
PermitRootLogin yes
IgnoreRhosts yes
StrictModes yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd yes
XAuthLocation /bin/xauth
KeepAlive yes
SyslogFacility AUTHPRIV
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords yes
PermitUserEnvironment yes
[anaconda root@localhost ~]#


Version-Release number of selected component (if applicable):
lorax-28.14.54-1.el8

--- Additional comment from Brian Lane on 2020-08-27 01:06:38 CEST ---

pam in the boot.iso doesn't have the motd module included so PrintMotd should stay set to yes. The other suggested changes look fine.

--- Additional comment from Brian Lane on 2020-08-27 23:32:43 CEST ---

Upstream PR - https://github.com/weldr/lorax/pull/1064

Comment 1 Jan Stodola 2021-09-23 14:05:46 UTC
The changes are not applied in RHEL-9, so cloning the bug.

Comment 2 Brian Lane 2021-09-23 16:25:04 UTC
Looks like pam now has the motd module included so this sets 'PrintMotd no'

https://gitlab.com/redhat/centos-stream/rpms/lorax-templates-rhel/-/merge_requests/19

Comment 3 Jan Stodola 2021-10-08 15:59:07 UTC
The changes in lorax-templates-rhel-9.0-25.el9 look good:

PermitRootLogin yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
SyslogFacility AUTHPRIV
PasswordAuthentication yes
PermitEmptyPasswords yes
PermitUserEnvironment yes

Comment 6 Jan Stodola 2021-10-11 16:27:27 UTC
The changes are reflected in /etc/ssh/sshd_config.anaconda in the installation environment and it's possible to login via ssh during the installation process (if "inst.sshd" was present on the kernel command line). There are no errors during login via ssh.

Tested on compose RHEL-9.0.0-20211010.4 with lorax-templates-rhel-9.0-25.el9.

Moving to VERIFIED.

Comment 8 errata-xmlrpc 2022-05-17 12:38:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: lorax-templates-rhel), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2364


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