断开连接:当从 Android studio 将代码推送到 gitlab 时,没有可用的受支持的身份验证方法(服务器发送:publickey)
Disconnected: No supported authentication methods available (server sent: publickey) when push code to gitlab from Android studio
更新git后,我遇到一个问题,当我在android工作室和git实验室之间推送或拉取代码时,有一个问题:
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我在网上搜索了一下,发现ssh有连接问题,但是
我仍然可以将项目克隆到我的本地机器上。
我检查了我电脑上的 ssh public 密钥和 gitlab,它们仍然存在。
我的git集线器工作正常,我可以推送或拉取代码
如果 ssh -T git@<yourGitLabServer>
确实有效(意味着您收到 "Welcome" 消息),请检查您是否可以通过以下方式查询存储库:
git ls-remote git@<yourGitLabServer>:<user>/repo
如果是这样,那么一定是存在权限问题,导致您无法推送(例如,您不再是该项目的合作者)
更新git后,我遇到一个问题,当我在android工作室和git实验室之间推送或拉取代码时,有一个问题:
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我在网上搜索了一下,发现ssh有连接问题,但是
我仍然可以将项目克隆到我的本地机器上。
我检查了我电脑上的 ssh public 密钥和 gitlab,它们仍然存在。
我的git集线器工作正常,我可以推送或拉取代码
如果 ssh -T git@<yourGitLabServer>
确实有效(意味着您收到 "Welcome" 消息),请检查您是否可以通过以下方式查询存储库:
git ls-remote git@<yourGitLabServer>:<user>/repo
如果是这样,那么一定是存在权限问题,导致您无法推送(例如,您不再是该项目的合作者)