Bug 2083269
| Summary: | Allow enabling root access via ssh with password for kickstart installations - pykickstart part | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jan Stodola <jstodola> |
| Component: | pykickstart | Assignee: | Brian Lane <bcl> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | unspecified | Docs Contact: | Sagar Dubewar <sdubewar> |
| Priority: | medium | ||
| Version: | 9.0 | CC: | anaconda-maint-list, bcl, jkonecny, jstodola, pkhedeka, release-test-team-automation, sbarcomb, sdubewar |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | pykickstart-3.32.7-1.el9 | Doc Type: | Enhancement |
| Doc Text: |
.Added the `--allow-ssh` kickstart option to enable password-based SSH root logins
During the graphical installation, you have an option to enable password-based SSH root logins. This functionality was not available in kickstart installations. With this update, an option `--allow-ssh` has been added to the `rootpw` kickstart command. This option enables the root user to login to the system using SSH with a password.
|
Story Points: | --- |
| Clone Of: | 2033849 | Environment: | |
| Last Closed: | 2022-11-15 10:26:32 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: | 2033849 | ||
|
Description
Jan Stodola
2022-05-09 15:03:31 UTC
Are you saying that when you use sshkey https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html#id57 to set a root ssh key (for the *installed* system's root) that they cannot login? Or are you saying that it isn't included in the example kickstart that's generated? Or something else :) A couple example kickstarts would also be helpful. Oops. I think I understand now, I missed the mention of 'password' somehow. My brain seems to assume all ssh access is via keys :) So it looks like the problem is: * Anaconda has a GUI option to allow root password ssh logins * kickstart does not have a way to express that as part of 'rootpw' So I think the solution here is to add a '--allow-ssh' option to the 'rootpw' command. As always, this also needs to be added upstream first. Thank you for creating the PR so quickly Brian. rhel9-branch PR - https://github.com/pykickstart/pykickstart/pull/411 (had to replace F37 usage with RHEL9 and also tweaked the tests so they will run on py3.9 or py3.10 for easier local testing). Moving back to Verified:Tested, the patch from comment 12 is included in pykickstart-3.32.7-1.el9 Checked that pykickstart-3.32.7-1.el9 is in nightly compose RHEL-9.1.0-20220627.0 and the prepared documentation looks good. Moving to VERIFIED 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 (pykickstart 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-2022:8138 |