Hi Everyone. I am having an issue adding a git remote to push to my production server that is hosted with GoDaddy.
For example I use to be able to add it like this at it worked fine:
git add remote beta ssh://username@mysite.com/~/gitrepos/myrepo.git
When trying to push the beta I now get this error:
Unable to negotiate with "ip of server" port 22: no matching host key type found. Their offer: ssh-rsa,ssh-rsa-cert-v01@openssh.com,ssh-dss
fatal: Could not read from remote repository.
I then thought it was the ssh key so I created a new one. Imported the public key to GoDaddy and tested a connection in the terminal:
ssh username@mysite.com
And got the same error as above "Unable to negotiate..."
I then found out I had to use the following ssh flag "-oHostKeyAlgorithms=+ssh-dss" in order to connect successfully:
ssh -oHostKeyAlgorithms=+ssh-dss username@mysite.com
So my question is... How do I add this new ssh flag "-oHostKeyAlgorithms=+ssh-dss" to the git remote?
I figure out my issue. I had to add the following in my .ssh/config file:
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.