AlmaLinux / raspberry-pi

AlmaLinux Raspberry Pi
136 stars 18 forks source link

RPI. Image Default root password #16

Closed guzongzi closed 2 years ago

guzongzi commented 2 years ago

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.

srbala commented 2 years ago

SSH is deprecated in upstream, https://www.redhat.com/en/blog/openssh-scp-deprecation-rhel-9-what-you-need-know

https://github.com/AlmaLinux/raspberry-pi/blob/master/AlmaLinux-9-RaspberryPi-console.aarch64.ks#L9

srbala commented 2 years ago

@guzongzi since it is a more informational type, I'm closing this issue and pinning it for others' reference.

thomasnaudin commented 2 years ago

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 ?

e3b0c442 commented 1 year ago

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.

codyro commented 1 year ago

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?

AlexBaranowski commented 1 year ago

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 👍🏼 .

halictuz commented 1 year ago

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.

metalefty commented 1 year ago

Will be addressed with updated 9.2 image, hang tight.

feluxe commented 1 year ago

It still doesn't work.

metalefty commented 1 year ago

Raise your own issue for your issue.