Closed guzongzi closed 2 years ago
@guzongzi since it is a more informational type, I'm closing this issue and pinning it for others' reference.
Does it mean that there is no way one could login via ssh with a fresh flashed sd-card ? Should I use a keyboard & a screen to configure my Raspberry ?
Came upon this while doing research. @srbala I think there may be a misunderstanding -- SSH as a whole was absolutely not deprecated with RHEL9, just the SCP file copy protocol.
Surely something else must be at play here.
I believe @srbala misspoke regarding SSH, it's definitely just SCP. I'll try to test this out shortly however without looking I'm guessing the shipped /etc/ssh/sshd_config
has PermitRootLogin
set to without-password
or something along those lines. sshd
is being started based off the kickstart file. Are you just getting login error or is SSH not responding at all?
Enterprise Linux version 9 has the root login on SSH disabled by the default. It started with 9.0 went on with 9.1, and it will be default behaviour in the future.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/9.0_release_notes/index
Look for : New options to Lock root account and Allow root SSH login with password
and
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/considerations_in_adopting_rhel_9/index#ref_installer-installer-and-image-creation_assembly_installer-and-image-creation -> this document has the most important changes between Enterprise Linux 8 and Enterprise Linux 9 . The installler section starts with information about disabled sshd root login.
There is the snippet that can be used to enable ssh login:
echo "PermitRootLogin yes" > /etc/ssh/sshd_config.d/01-permitrootlogin.conf
can be put in the %post
section of the kickstart. @guzongzi You can easly create PR to fix that 👍🏼 .
This is kinda annoying though. I just plugged my drive into another PC and edited the sshd config to permit root login and then plugged it back in on the machine I wanted it to install on. Just as an info if somebody else wants to change that.
Will be addressed with updated 9.2 image, hang tight.
It still doesn't work.
Raise your own issue for your issue.
What's the default root password for almaliunx 9.0? Can't login via ssh. Or maybe ssh root user login is not enabled? Useing AlmaLinux-9-RaspberryPi-9.0-20220615.aarch64 headless.