Git error: Unable to negotiate with XX.XX.XXX.XXX : no matching host key type found . their offer: ssh-dss -
this question has answer here:
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
Post a Comment