Invocation failed Unexpected Response from Server: Unauthorized

Android studio 更新到3.4之后,使用 git 拉取远端文件是报错 Invocation failed Unexpected Response from Server: Unauthorized.
下面 SSH executable 改成 build-in
Invocation failed Unexpected Response from Server: Unauthorized_第1张图片

再次拉取成功!

如果每次push到远程都需要输入密码可以执行下面命令
直接执行命令:

MAC执行下面

ssh-add -K ~/.ssh/id_rsa

Windows:
如果报错 Could not open a connection to your authentication agent.
先执行:eval ssh-agent -s

然后执行 ssh-add + 你的 id_rsa 实际地址 可能是 c/用户/…

以上都执行完了如果报以下错误就需要你讲生成的长串key填写到远端

Invocation failed Unexpected Response from Server: Unauthorized_第2张图片

你可能感兴趣的:(技术文章)