Git Extensions push issue

After I made some code modifications, I try to commit and push the changes. Commit operations succeeded but push failed. I've got my errors.

I turn to the Geek guy for helping investigate the issue.?

For part of the reason, it is because the OpenSSH I am using is incompatible with the server.Then we can get some clues to refer this site http://www.openssh.com/legacy.html. ?I copy it here in case we cannot access it some day.

Using OpenSSH with legacy SSH implementations

OpenSSH implements all of the cryptographic algorithms needed for compatibility with standards-compliant SSH implementations, but since some of the older algorithms have been been found weak not all are algorithms are enabled by default. This page describes what to do when OpenSSH refuses to connect with an implementation that only supports legacy algorithms.

When a SSH client connects to a server, each side offers lists of connection parameters to the other. These include the ciphers to encrypt the connection, the message authentication codes (MACs) used to detect traffic modification, the public key algorithms that the server can use to authenticate itself to the client and the key exchange methods that are used to generate per-connection keys. In a successful connection, there is at least one mutually-supported choice for each parameter.

If the client and server are unable to agree on a mutual set of parameters then the connection will fail. OpenSSH (7.0 and greater) will produce an error message like this:

Unable to negotiate with 127.0.0.1: no matching key exchange method found.

Their offer: diffie-hellman-group1-sha1

In this case, the client and server were unable to agree on the key exchange algorithm. The server offered only a single methoddiffie-hellman-group1-sha1. OpenSSH supports this method, but does not enable it by default because is weak and within theoretical range of the so-called Logjam attack.

The best resolution for these failures is to upgrade the software at the other end. OpenSSH only disables algorithms that we actively recommend against using because they are known to be weak. In some cases, this might not be immediately possible so you may need to temporarily re-enable the weak algorithms to retain access.

For the case of the above error message, OpenSSH can be configured to enable thediffie-hellman-group1-sha1key exchange algorithm (or any other that is disabled by default) using theKexAlgorithmoption - either on the command-line:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 [-p29418] user@127.0.0.1

or in the~/.ssh/configfile:

Host somehost.example.org

KexAlgorithms +diffie-hellman-group1-sha1

The '+' before the list instructs ssh to append?the algorithm to the client's default set rather than replacing the default. By appending, you will automatically upgrade to the best supported algorithm when the server starts supporting it.

Another example, this time where the client and server fail to agree on a public key algorithm for host authentication:

Unable to negotiate with 127.0.0.1: no matching host key type found.

Their offer: ssh-dss

OpenSSH 7.0 and greater similarly disables thessh-dss(DSA) public key algorithm. It too is weak and we recommend against its use. It can be re-enabled using theHostkeyAlgorithmsconfiguration option:

ssh -oHostKeyAlgorithms=+ssh-dss user@127.0.0.1

or in the~/.ssh/configfile:

Host somehost.example.org

HostkeyAlgorithms ssh-dss

Depending on the server configuration, it's possible for other connection parameters to fail to negotiate. You might find theCiphersand/orMACsconfiguration options useful for enabling these. It's also possible to query which algorithms ssh supports:

ssh -Q cipher? ? ? # List supported ciphers

ssh -Q mac? ? ? ? ? # List supported MACs

ssh -Q key? ? ? ? ? # List supported public key types

ssh -Q kex? ? ? ? ? # List supported key exchange algorithms

Finally, it's also possible to query the configuration that ssh is actually using when it is attempting to connect to a specific host using the-Goption. For example:

ssh -G user@somehost.example.com

Will list all the configuration options, including the chosen values for theCiphers,MACs,HostkeyAlgorithmsandKexAlgorithmsparameters.


For another part of the reason, I have to modify the .gitconfig file in the code directory. To append ?[url "ssh://user@*******.net:port/"]?

pushInsteadOf = git://*******.net/

Then I can push my code to server normally.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌沮稚,老刑警劉巖侍筛,帶你破解...
    沈念sama閱讀 219,110評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件王凑,死亡現(xiàn)場離奇詭異紊馏,居然都是意外死亡硬贯,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,443評論 3 395
  • 文/潘曉璐 我一進店門掸驱,熙熙樓的掌柜王于貴愁眉苦臉地迎上來肛搬,“玉大人,你說我怎么就攤上這事毕贼∥屡猓” “怎么了?”我有些...
    開封第一講書人閱讀 165,474評論 0 356
  • 文/不壞的土叔 我叫張陵鬼癣,是天一觀的道長陶贼。 經(jīng)常有香客問我,道長待秃,這世上最難降的妖魔是什么拜秧? 我笑而不...
    開封第一講書人閱讀 58,881評論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮章郁,結(jié)果婚禮上枉氮,老公的妹妹穿的比我還像新娘。我一直安慰自己暖庄,他們只是感情好聊替,可當我...
    茶點故事閱讀 67,902評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著培廓,像睡著了一般惹悄。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上医舆,一...
    開封第一講書人閱讀 51,698評論 1 305
  • 那天俘侠,我揣著相機與錄音象缀,去河邊找鬼蔬将。 笑死,一個胖子當著我的面吹牛央星,可吹牛的內(nèi)容都是我干的霞怀。 我是一名探鬼主播,決...
    沈念sama閱讀 40,418評論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼莉给,長吁一口氣:“原來是場噩夢啊……” “哼毙石!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起颓遏,我...
    開封第一講書人閱讀 39,332評論 0 276
  • 序言:老撾萬榮一對情侶失蹤徐矩,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后叁幢,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體滤灯,經(jīng)...
    沈念sama閱讀 45,796評論 1 316
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,968評論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了鳞骤。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片窒百。...
    茶點故事閱讀 40,110評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖豫尽,靈堂內(nèi)的尸體忽然破棺而出篙梢,到底是詐尸還是另有隱情,我是刑警寧澤美旧,帶...
    沈念sama閱讀 35,792評論 5 346
  • 正文 年R本政府宣布渤滞,位于F島的核電站,受9級特大地震影響榴嗅,放射性物質(zhì)發(fā)生泄漏蔼水。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,455評論 3 331
  • 文/蒙蒙 一录肯、第九天 我趴在偏房一處隱蔽的房頂上張望趴腋。 院中可真熱鬧,春花似錦论咏、人聲如沸优炬。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,003評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽蠢护。三九已至,卻和暖如春养涮,著一層夾襖步出監(jiān)牢的瞬間葵硕,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,130評論 1 272
  • 我被黑心中介騙來泰國打工贯吓, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留懈凹,地道東北人。 一個月前我還...
    沈念sama閱讀 48,348評論 3 373
  • 正文 我出身青樓悄谐,卻偏偏與公主長得像介评,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子爬舰,可洞房花燭夜當晚...
    茶點故事閱讀 45,047評論 2 355

推薦閱讀更多精彩內(nèi)容