fatal: Could not read from remote repository.

gitlib configures ssh keys and then pulls the report Could not read from remote repository in Sourcetree

Solution: delete the current key, then regenerate the key,

ssh-keygen -t rsa -C '***********@xxxx.com'

write picture description here
A folder will be generated locally in C:\Users\your username.ssh, which contains two files, id_rsa and id_rsa.pub,
and then copy the contents of the id_rsa.pub file to https://github.com/settings/keys create a new one,
write picture description here
write picture description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324815902&siteId=291194637