Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1872892

Summary: Updates in sshd_config.anaconda
Product: Red Hat Enterprise Linux 8 Reporter: Jan Stodola <jstodola>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lorax-28.14.57-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1872921 2007288 (view as bug list) Environment:
Last Closed: 2021-05-18 15:54:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1812825, 1872921    

Description Jan Stodola 2020-08-26 20:35:09 UTC
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

Comment 1 Brian Lane 2020-08-26 23:06:38 UTC
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.

Comment 2 Brian Lane 2020-08-27 21:32:43 UTC
Upstream PR - https://github.com/weldr/lorax/pull/1064

Comment 7 Jan Stodola 2021-01-20 18:28:49 UTC
Verified together with bug 1872921 (common/sshd_config.anaconda doesn't differ in lorax and lorax-templates-rhel), moving to VERIFIED.

Comment 9 errata-xmlrpc 2021-05-18 15:54:56 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 (lorax bug fix and enhancement update), 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-2021:1888