已经上传了公钥,但是与远程仓库关联后,git push仍然报错
\302\226git@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.
使用ssh -T git@github.com
也收到了欢迎信息,但是就是报错.
我把之前的公钥删除了重新上传,在这个仓库里面push仍然报错.
比较神奇的是,我昨晚把git文件夹全删了,今天重新init
个新仓库,再连接后使用git push
它又好了.
可能昨晚我重新上传公钥确实行,但是需要重新建仓库.