I'm planning a setup wherein users can only login to a machine via SSH, but will need their password for sudo commands (to avoid accidents so that there is a 'sanity check' prompt for a password, and to avoid compromised accounts such that even if someone fudges their way in with your pub-priv key, there's an extra challenge on root commands).
Can I force a user to change their password when they first login (using a pub key) via SSH?
I know I can use chage
but I assume this is for physical logins and not remote logins.