I have set passwordless connection from user A on my server to two other users. SSH to one of them works fine, but to the other one it asks for password.
As far as I can tell, both users are the same with ssh files, permissions, etc. setting StrictModes no and UsePAM no didn't help.
In /var/log/secure I see for the first user:
debug1: trying public key file /home/testb/.ssh/authorized_keys debug1: fd 4 clearing O_NONBLOCK debug1: matching key found: file /home/testb/.ssh/authorized_keys, line 1
And for the second (/myuser/app/ is ~):
debug1: trying public key file /myuser/app/.ssh/authorized_keys debug1: restore_uid: 0/0 debug1: temporarily_use_uid: 1500/1500 (e=0/0) debug1: trying public key file /myuser/app/.ssh/authorized_keys debug1: restore_uid: 0/0 Failed publickey for myuser from ::1 port 38888 ssh2
authorized_keys file is the same for both.
Any help would be appreciated.