github 在推送 ssh 时看到错误的用户名

问题描述 投票:0回答:0

我正在尝试推送到我的 github 存储库。

我遵循了官方github关于设置SSH访问的说明。密钥验证成功:

$ ssh -T [email protected]
Hi 1234ru! You've successfully authenticated, but GitHub does not provide shell access.

存储库 url 看起来是正确的:

$ git remote get-url --push origin
[email protected]:1234ru/<my-repo>.git

push
命令失败:

$ git push
[email protected]: 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
响应OK而github同时拒绝push请求?

编辑。 澄清一下:这是我自己的存储库,我没有对其设置任何特定的安全限制。

authentication github ssh push
© www.soinside.com 2019 - 2024. All rights reserved.