Project actual git pull code failed

Project actual git pull code failed

Failed prompt when pulling code from server

Unable to negotiate with 172.17.12.189 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Insert image description here

This is because the ssh support algorithm of git is not configured, so first create a new file config under C:\User.ssh\ and write the following code:

C:\Users\zhangmj2.ssh

Insert image description here

Host *

KexAlgorithms +diffie-hellman-group1-sha1

hint

Insert image description here

Add the authentication method to the file just now

Host *

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

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_48824655/article/details/129842926