no matching host key type found. Their offer: ssh-rsa

Using git bash to pull the code under windows reports the error as follows:

Unable to negotiate with 192.168.133.58 port 29418: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

Please make sure you have the correct access rights 
and the repository exists.

Solution:
Create a new config file under the .ssh folder in the user directory and add:

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

Guess you like

Origin blog.csdn.net/qq_27577263/article/details/121079772
Recommended