/etc/ssh/sshd_config has this bit: # Allow root login with password on livecds. PermitRootLogin Yes however, it also has: # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no #PermitEmptyPasswords no With PasswordAuthentication no one cannot login using a password, which makes it all a bit complicated to setup, so I would suggest commenting out PasswordAuthentication such that one can ssh with password as root to the livecd-booted box. Reproducible: Always Steps to Reproduce: 1.boot livecd 2.passwd (to something you know) 3./etc/init.d/sshd start 4.(from remote) ssh root@livecd-host (fails, password auth not allowed) Expected Results: since we allow root to login, that we can actually login via set password
I think you have something else going wrong, I just tested on install-amd64-minimal-20220220T170542Z.iso and this is working fine. I did have to set a pretty complex password due to passwdqc default requirements. That "PasswordAuthentication no" does not actually disable password auth since we have USE=pam enabled.
Odd, I'm booted into the box right now, and the only way for me to ssh into it, was enabling the setting. Feb 25 17:26:53 livecd sshd[9624]: Connection closed by authenticating user root x.y.z.a port 35176 [preauth] % ssh root@x.y.z.a root@x.y.z.a: Permission denied (publickey,keyboard-interactive). enabling the setting, restarting sshd and Feb 25 17:29:48 livecd sshd[9776]: Accepted password for root from x.y.z.b p ort 35178 ssh2 Feb 25 17:29:48 livecd sshd[9776]: pam_unix(sshd:session): session opened for us er root(uid=0) by (uid=0) % ssh root@x.y.z.a root@x.y.z.a's password: Welcome to the Gentoo Linux Minimal Installation CD! ...
Which exact installcd is this?
install-amd64-minimal-20220220T170542Z.iso
ok, problem/workaround found, keyboard-interactive works, password doesn't. Not sure what the difference is, but this works for me. ssh -o PreferredAuthentications=keyboard-interactive root@<livecd>