Warepire | Hi, 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/4c5P | 13:37 |
---|---|---|
Warepire | The password is just "password" | 13:37 |
Warepire | If I mount the resulting qcow2 I can find that the user exists in passwd, and the hash appears in the shadow file. | 13:38 |
waldi | Warepire: and what is listed in the sshd config? as you explicitly set ssh_pwauth to false | 13:38 |
waldi | or use the ssh key | 13:39 |
Warepire | Currently just trying to log in via the console | 13:39 |
waldi | ah | 13:40 |
Warepire | The exact line that shows up in shadow is testuser:!$6$rounds=4096$j5nCG.IE3IfcB4Jb$FqRhNISfmvMktMwb3Olu3BsKXFZUYC2Bwsg9dTNO55/Oz9foIoecnv3lCHY2sVVmoUNCYOYPCkFGPkt9K6KmE.:19266:0:99999:7::: | 13:43 |
Warepire | If that helps | 13:43 |
waldi | Warepire: you just told us, the hash is included. but this is incorrect, it is prefixed by "!", aka disabled | 13:44 |
Warepire | Ugh, 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_config | 13:45 |
Warepire | I 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!