Git: Permission denied (publickey) fatal – Could not read from remote repository. while cloning Git repository

For people that come here that are just trying to get the repository but don’t care about the protocol (ssh / https), you might just want to use https instead of ssh (if it’s supported).

So for example you use

git clone https://github.com/%REPOSITORYFOLDER%/%REPOSITORYNAME%.git

instead of

git clone git@github.com:%REPOSITORYFOLDER%/%REPOSITORYNAME%.git

Note that GitHub deprecated password authentication (https login) for private repositories due to it not keeping up with the latest security standards, use a personal access token.

Note also that since March 1, 2022, Bitbucket users are no longer able to use their Atlassian account password with git over https as well, but instead need to use Bitbucket app passwords.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)