I'm trying to setup SSH authentication via RSA files on Ubuntu 16.04 Server.
I generated key files on my local machine, then used
and copied id_rsa.pub to ~/.ssh/authorized_keys then changed permissions
chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys.
It works fine for one user, I type ssh user@host on my local machine and it connects automatically without asking password. But when I do all the same steps for another user, ssh asks for a password and after three unsuccessful login attempts it writes
Permission denied (publickey,password).