I'm having quite a hard time with ssh keys.
To explain the context, I'm trying to ssh my VM (my computer is the client and the VM on it is the server). For now, it works using password authentication but I'd like to make it work with ssh keys.
I'm on windows and despite being reading a lot of similar topics, I can't find a solution.
For now, I've tried a lot of things such as :
- Changing administrators_authorized_keys file permissions (for some reason, I'm in the Administrator group however I can't open files in ssh directory if I don't give full control to my account (admin).
- Generate keys using Puttygen and ssh-keygen
- Uncomment this line : PubkeyAuthentication yes in sshd_config
- Debug through Powershell using sshd -ddd ; The server is listening but I can't see any connection even though I'm trying to ssh it.
I'm feeling quite out of options now.
I thank you in advance for your answers.
sshd
and PuTTY are you using? + Does youradministrators_authorized_keys
have plain ASCII encoding (no UTF-16, or maybe UTF-8 BOM)?administrators_authorized_keys
and use a key specific to your single user.