Yes I know this a Ubuntu forum.. First off all thanks for doing what you do and helping people!
Alright so I've been trying to setup SSH keys on my Ubuntu 20.04, read stuff about it online. So I generated keys on ubuntu with ssh-keygen -t rsa. Now I want only my Windows PC to connect to it (without enabling password obviously) through Windows Powershell.
So I copied my Public key file to my Windows pc and put it in C:\Users\Username\.ssh\ but somehow when connecting I receive the Error Permission denied (publickey) error.
So supposedly some "smart" people online all suggest adding this setting PasswordAuthentication yes to /etc/ssh/sshd_config but doesn't this defeat the purpose of using SSH Keys exclusively to connect to your server?
So if I would guess this has to be a directory permission issue, but I don't know what directories need what permissions on Ubuntu and Windows.
Been fiddling around with this for quite a while now, but trial and error takes so much time and I'm short on that, so if anyone could provide me with their hard earned experience that would be great.
Thanks in advance brothers! Keep the community rocking.
Grtz
Mex