我最近遇到了一个奇怪的问题,每当我触发任何git操作(比如拉/推)时,我的android studio都会崩溃。上面写着:
Update failed
Invocation failed Unexpected Response from Server: Unauthorized
java.lang.RuntimeException: Invocation failed Unexpected Response from Server: Unauthorized
at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNativeSshAskPassXmlRpcClient.java:34)
at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassApp.main(GitNativeSshAskPassApp.java:30)
Caused by: java.io.IOException: Unexpected Response from Server: Unauthorized
at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:231)
at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at org.jetbrains.git4idea.nativessh.GitNativeSshAskPassXmlRpcClient.handleInput(GitNat... (show balloon)任何帮助都将不胜感激。提前感谢!
我删除了known_hosts文件,command_line git问我是否可以创建一个并添加这个IP,我说可以。
命令行运行git操作没有任何问题。是sourceTree和安卓工作室有这个问题,我不知道为什么
发布于 2019-07-09 06:06:49
当远程known_hosts知道客户机的IP时,远程主机可能无法在本地关联,或者由于某些其他原因,SSH2身份验证不会成功。Unauthorized通常意味着防火墙不是问题所在。
尝试使用“原生”客户端-它应该可以工作,但它在终端中工作:

https://stackoverflow.com/questions/56942804
复制相似问题