Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

ssh - Centos 8.2 cloud-init server root password not set

Cloud-init is supposed among others, to set also the root password for a iscsi booted centos 8.2 server.

cloud-init.log showing this

2020-12-15 22:00:24,916 - util.py[DEBUG]: Running hidden command to protect sensitive input/output logstring: chpasswd for root

selinux is disabled and firewalld as well.

I suspected initially that password is set but user root is not being allowed to login via ssh, but after checking the sshd_config file I don't think that's the problem (PermitRootLogin and PasswordAuthentication both set to Yes).

Managed to set the root password with single-user mode and chroot.

Do you have any other ideas on what could be the root-cause of this behaviour?

Thank you


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...