/srv/irclogs.ubuntu.com/2022/10/02/#cloud-init.txt

WarepireHi, I am trying to set up a qemu VM (Arch Linux) via cloud-init as a learning exercise and I can't log in as the user I am adding after the VM booted. My current user-data looks like this: http://ix.io/4c5P13:37
WarepireThe password is just "password"13:37
WarepireIf I mount the resulting qcow2 I can find that the user exists in passwd, and the hash appears in the shadow file.13:38
waldiWarepire: and what is listed in the sshd config? as you explicitly set ssh_pwauth to false13:38
waldior use the ssh key13:39
WarepireCurrently just trying to log in via the console13:39
waldiah13:40
WarepireThe exact line that shows up in shadow is testuser:!$6$rounds=4096$j5nCG.IE3IfcB4Jb$FqRhNISfmvMktMwb3Olu3BsKXFZUYC2Bwsg9dTNO55/Oz9foIoecnv3lCHY2sVVmoUNCYOYPCkFGPkt9K6KmE.:19266:0:99999:7:::13:43
WarepireIf that helps13:43
waldiWarepire: you just told us, the hash is included. but this is incorrect, it is prefixed by "!", aka disabled13:44
WarepireUgh, I forgot that's what ! means.. Thank you. Anything in my user-data that would make it disabled? I would expect the ssh_pwauth to only disable passwords in the sshd_config13:45
WarepireI missed lock_password defaults to true in the docs. Thanks for the hint waldi !13:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!