Git 拒绝我推送到远程 github 存储库和 returns 不正确的用户名

Git denies me access to push to remote github repository and returns incorrect username

今天我尝试推送到我的 github 存储库并收到此错误:

ERROR: Permission to victor126/simple-eth-wallet.git denied to deploy key
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

然后我在我的每一个存储库上都尝试了这个,并且都给了我这个错误,这真的很奇怪,因为昨天我能够成功推送。然后我检查我的 ssh 密钥是否在我的 ssh 代理中,以及是否在我的 github 帐户中添加了相应的密钥。两人都退房了。

更奇怪的是,我随后尝试使用 ssh -T git@github.com ssh 到 github,这给了我:

Hi Abduboriy1/Networking! You've successfully authenticated, but GitHub does not provide shell access.

这真的很奇怪,因为 Abduboriy1/Networking 不是我的用户名。这是我朋友的用户名,但只是第一部分。大约一个月前我们一起完成了一个项目。

有谁知道这里发生了什么,为什么 returns 他的用户名而不是我的?我该如何解决这个问题?

Git 将默认密钥设置为您朋友的,检查 ~/.ssh/config 并将 'IdentityFile' 设置为您自己的 ssh 密钥