Android studio 断开连接:从Android studio向gitlab推送代码时,没有支持的身份验证方法可用(服务器发送:publickey)
更新git后,我遇到了一个问题,当我在android studio和gitlab之间推拉代码时,出现了一个问题:Android studio 断开连接:从Android studio向gitlab推送代码时,没有支持的身份验证方法可用(服务器发送:publickey),android-studio,ssh,gitlab,ssh-keys,Android Studio,Ssh,Gitlab,Ssh Keys,更新git后,我遇到了一个问题,当我在android studio和gitlab之间推拉代码时,出现了一个问题: 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 rig
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存在连接问题,但是
我仍然可以将项目克隆到本地计算机
我已经在我的pc和gitlab上检查了ssh公钥,它们仍然存在
我的github工作正常,如果ssh-T git@
工作正常,我可以推送或拉送代码(这意味着您收到一条“欢迎”消息),请检查您是否可以通过以下方式查询回购:
git ls-remote git@<yourGitLabServer>:<user>/repo
git ls remote git@:/repo
如果是这种情况,则必须存在权限问题,这会阻止您推送(如,您不再是该项目的合作者)