Cloning into '***'... The authenticity of host 'github.com (20.205.243.166)' can't be established. ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) 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.
问题原因: clone了别人的仓库, 用的git链接
解决方法: 改用http链接即可
情况2
问题描述
1 2 3 4
git push orgin master
! [remote rejected] master -> master (permission denied) error: failed to push some refs to 'git@github.com:ericjuice/overlaySR.git'