DEV Community

rawatsaurabh
rawatsaurabh

Posted on

git bash throwing error related to ssh-rsa

hello ,
I am behind the proxy and accessing my corporate server for development.
my git bash version is :
mintty 3.5.1
my git version is git version 2.34.0.windows.1

Whenever I am trying to do repo sync i am getting below error :

Unable to negotiate with 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

I have read gone through google many articles on this but could find a solution. In crux git has deprecated the use of ssh-rsa from 2.34 onwards though the previous versions may work fine...

Please let me know how to fix this ,

I even tried adding below lines inside the config file in .ssh folder

Host
User git
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa

This is a workaround but still not working.

Top comments (0)