"diffie-hellman-group14-sha1,diffie-hellman-group1-sha1" problem solved


foreword


This article solves the "no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: Unable to read the remote warehouse." problem that occurs when using git for the first time .


1. Basic concepts

Git (pronounced /gɪt/) is an open source distributed version control system that can effectively and quickly handle project version management from small to very large. It is also an open source version control software developed by Linus Torvalds to help manage Linux kernel development.

2. Operation steps

1. Open the configuration file

sudo gedit /etc/ssh/ssh_config

2. Modify parameters

remove

#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,[email protected]

The comment symbol "#".
Add at the end

HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1

show
insert image description here


Summarize

This article describes how to solve the problem
"no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 fatal: unable to read the remote warehouse." when using git for the first time.

Guess you like

Origin blog.csdn.net/szylight2022/article/details/127491751