Invocation failed Unexpected Response from Server: Unauthorized

版权声明:本文出自 jin广越 的博客,转载必须注明出处。 http://blog.csdn.net/coderyue https://blog.csdn.net/CoderYue/article/details/90174007

Android studio 更新到3.4之后,使用 git 拉取远端文件是报错 Invocation failed Unexpected Response from Server: Unauthorized.
下面 SSH executable 改成 build-in
在这里插入图片描述

再次拉取成功!

如果每次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填写到远端

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/CoderYue/article/details/90174007