Git error: Unable to negotiate with XX.XX.XXX.XXX : no matching host key type found . their offer: ssh-dss -


i trying connect repository works through vpn. downloaded git , when try clone repo, message:

unable negotiate xx.xx.xxx.xxx : no matching host key type found . offer: ssh-dss

is there missing?

i have found problem , new openssh versions disable ssh-dss (dsa) public key algorithm. dsa deemed weak , openssh community recommends against use.

if see error similar this:

unable negotiate 10.96.8.72: no matching host key type found. offer: ssh-dss

...then must re-enable dsa keys editing ~/.ssh/config file add following line:

hostkeyalgorithms +ssh-dss 

you may need create ~/.ssh/config file if not exist.

after creating file, must restrict access permissions:

chmod 600 ~/.ssh/config 

and clone. should work fine!


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -