I have school project server - debian 8 jessie and I have working SSH Key-based authentication. My problem is, that I created new user named tester and he is unable to connect to server and it give the following error:
No supported authentication methods available public key
I tried to change testers key to my own and then I tried to connect as tester by myself but it doesn't work.
I'm really newbie to this, so i have no clue what is wrong. I will be happy for any advices.
I used these commands
useradd -G users,sudo tester passwd tester mkdir /home/tester mkdir /home/tester/.ssh chown tester:tester /home/tester chown tester:tester /home/tester/.ssh chmod go-rx /home/tester chmod go-rx /home/tester/.ssh mv /home/marm04/authorized_keys /home/tester/.ssh chown tester:tester /home/tester/.ssh/authorized_keys 
ls -l //home/tester/.ssh/authorized_keys