I have a server, and I want to be able to SSH in with two different users. I have setup public key authentication for the first user, and it works just fine, however, I can't login with the second user. The difference between the authorized_keys file is that, the second user has two keys(both of them fail when authenticating). Both the .ssh directory and the authorized keys file have 755 permissions. The ssh client sends the key, that I want to authenticate with. What could be the problem?
SSH failed public key authentication
ssh
I have found this message in /var/log/auth.log:Oct 22 13:27:58 hagyma sshd[27420]: User userb not allowed because account is lockedI have set a password for userb with sudo passwd userb, and it unlocked the account.