My server has an ssh user that works (so sshd works).
When I added another user bob, then tried to connect, the client shows:
[email protected]: Permission denied (publickey).
And the server's logs show:
sshd: Could not open user 'bob' authorized keys '/home/bob//.ssh/authorized_keys': Permission denied
That double slash is probably the issue. Where is that coming from?
As I understand it shows that there is an issue with the path to the authorized_keys file! usually it's related to the permissions of
.sshdirectory or the user's home directory.the
.sshdirectory should have permissions of700and theauthorized_keysfile should have permissions of600so check them first :
to fix that you can easily do like this :
if the permissions are correct,restart
sshservice and test it againalso check the
authorized_keysmust be in this path :good luck !