Score:0

Cloud-init expire true issue

ve flag

After add expire: true in the cloud-init script, I can log in via key to the server, but it says You must change your password now and login again! I want if I set the password, the password expires after the first login and if I set a key, the system does not ask for the current password. Is there any solution?

This is my script

#cloud-config password: {$password} chpasswd: {literal}{expire: True}{/literal} ssh_pwauth: True ssh_authorized_keys: package_update: true package_upgrade: true

Score:0
sa flag

Unrelated to cloud-init, if a user's password is expired, they cannot login over SSH, even with valid keys. There are, however, ways to work around this.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.