adrianhajdin / project_3D_developer_portfolio

The most impressive websites in the world use 3D graphics and animations to bring their content to life. Learn how to build your own ThreeJS 3D Developer Portfolio today!
https://jsmastery.pro
5.92k stars 1.33k forks source link

can't clone the repo #147

Open LasithaAmarasinghe opened 3 months ago

LasithaAmarasinghe commented 3 months ago

git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.

divi-code commented 3 months ago

GitHub isn't able to authenticate you. So, either you aren't setup with an SSH key, because you haven't set one up on your machine, or your key isn't associated with your GitHub account.

You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub's recommended method.

Further, GitHub has a help page specifically for that error message, and explains in more detail everything you could check.

To solve it: You should have a public key in your home directory, thus print the content of your public key, in Linux distro run for example cat ~/.ssh/id_rsa.pub (if the prior doesn't work, check the keys inside ~/.ssh/ with .pub extension)

Add the content of such a public key to your Github account: click your profile photo -> Settings-> SSH and GPG keys -> New SSH key or Add SSH key

LasithaAmarasinghe commented 3 months ago

Thanks @divi-code 🔥 I haven't set up an SSH key. Once I set up the SSH key I was able to clone.