Git Error: cannot be reconciled with XX.XX.XXX.XXX: the corresponding host key type was not found. their suggestion: ssh-dss

I am trying to connect to a repository that works through my VPN. I downloaded Git, and when I try to clone the repo, I get this message:

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

Is there something I am missing?

+7
git version-control repository ssh vpn
source share
2 answers

I found a problem. Newer versions of OpenSSH have disabled the ssh-dss public key algorithm (DSA). DSA is considered too weak, and the OpenSSH community recommends not using it.

If you see an error like this:

Unable to negotiate with 10.96.8.72: the corresponding host key type was not found. Their suggestion: ssh-dss

... then you must reactivate the DSA keys by editing the ~ / .ssh / config file to add the following line:

 HostkeyAlgorithms +ssh-dss 

You may need to create the ~ / .ssh / config file if it does not already exist.

After creating the file, you must restrict access rights:

 chmod 600 ~/.ssh/config 

and then do the clone. That should work just fine!

+27
source share

You are trying to clone the ssh protocol. The ssh server, on the other hand, requires that you use dss key authentication, but your ssh client that uses git does not have access to one, perhaps because you did not create it.

How you create the key depends on which ssh client and which operating system you are using.

When you create a key, you actually create a key pair with one private key and one public key. The public key must be known to the server so that the server can authenticate you.

How you add your public key to the ssh server server depends on which ssh server is used (or which git hosting software that wraps the ssh server).

+1
source share

All Articles