本文介绍了git push origin master:错误:断开连接:没有支持的认证方法可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在这里详细阅读了GitHub的问题,但是找不到解决我的问题的线索。我已经创建了新的git repo,现在我试图将它推送到GitHub:



$ g $ git remote add origin git @ github。 com:clergyman / first_app.git
git push origin master

我得到:

 致命错误:断开:没有支持的认证方法可用
致命:远程端意外挂断

ssh git@github.com 可以正常工作。

我在32位Windows 7上运行。

GitHub全局设置也很好。任何想法?解决方案是以某种方式将git的默认ssh客户端从pegeant更改为openSsh。例如。重新安装git并在相应的窗口中检查openSSH(不是pegeant或其他东西),如果你刚安装了git并且还没有开始工作。

I have read the GitHub questions here rather thoroughly, but couldn't find the clue to my problem. I have created new git repo and now I'm trying to push it to GitHub:

git remote add origin git@github.com:clergyman/first_app.git
git push origin master

I get:

FATAL ERROR: Disconnected: No supported authentication methods available
fatal: The remote end hung up unexpectedly

ssh git@github.com works fine.
I'm running on 32 bits windows 7.
GitHub global settings are fine too. Any ideas?

解决方案

The solution is somehow change default ssh client for git from pegeant to openSsh. E.g. reinstall git and check openSSH in the corresponding window (not pegeant or something), if you have just installed git and haven't started to work woth it yet.

这篇关于git push origin master:错误:断开连接:没有支持的认证方法可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 04:04