I am using Windows with Git (both Github and a local GitLab instance), but I cannot clone from either service.
Following is the error I get with a public repo on Github.
Cloning into 'xxx-java'...
The authenticity of host 'github.com (140.82.118.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpxwxE1IGOCspscxdCARLsdKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,140.82.118.3' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Seems to me like something is wrong with my SSH keys, but I created them exactly as told in the Gitlab documentation.
What am I missing? (It should be noted that cloning over HTTPS works fine).