I don't want to disable remote login with password altogether, but I want to make it so that my account is only accessible with key pair authentication (there are other users who wants to use passwords to log in). Is it possible to change this on a per-user basis, ideally without changing system settings?And to make it clear, my account has sudo access, so I don't want to lock the password.
How can I lock my own account from remote ssh login with password?
ssh;authentication;key authentication