Hello, I'm relatively new to Linux and very new to SSH, and after some recent experimenting I ran into a problem I can't work my way out off. I hope I've put this question in the correct forum, if not I'm happy to move it.
I recently bought a Raspberry Pi 5 and am trying to connect to it via SSH. After following the directions in this video I managed to connect with password authentication. After that I tried to authenticate with a key, followed all the instructions in the video, didn't encounter any errors, but when I tried to connect to my Raspberry Pi again I didn't get asked to unlock the generated key and it kept asking me for my password. After editing the sshd_config file and disabling password authentication (as per the instructions in the video) I couldn't connect to my Raspberry anymore and got this message: "[email protected]: Permission denied (publickey)."
Does anyone know what I'm doing wrong? And how could I fix it? I tried looking for solutions online but didn't find any, but maybe I just didn't look in the right place.
I recently bought a Raspberry Pi 5 and am trying to connect to it via SSH. After following the directions in this video I managed to connect with password authentication. After that I tried to authenticate with a key, followed all the instructions in the video, didn't encounter any errors, but when I tried to connect to my Raspberry Pi again I didn't get asked to unlock the generated key and it kept asking me for my password. After editing the sshd_config file and disabling password authentication (as per the instructions in the video) I couldn't connect to my Raspberry anymore and got this message: "[email protected]: Permission denied (publickey)."
Does anyone know what I'm doing wrong? And how could I fix it? I tried looking for solutions online but didn't find any, but maybe I just didn't look in the right place.