ssh_dispatch_run_fatal git error after updating my macbook to MacOs Mojave
I recently updated to MacOs Mojave on my Macbook but there have been some issues using git via Terminal. The first error was fixed by installing xCode which was easy afterwards I was able to do everything except commands that include the server such as git push / pull when I run git pull which has always been working I get an error message like this
ssh_dispatch_run_fatal: Connection to [some ip] port 22: incorrect signature
fatal: Could not read from remote repository.
The same happens when trying to git push.
and I cant seem to fix this error any suggestions on how to fix it??
Kind regards Julian
Usually, this message means that the remote server is misconfigured or out of date. Some versions of Gerrit before 2.16 (and possibly other applications using the Apache Mina SSH server) make incorrect signatures when using Ed25519 keys. (It's also possible, but unlikely, that you have a broken network card or proxy in place.)
The best way to fix this is to update the remote server such that it uses a fixed version of the appropriate SSH code. For Gerrit, this means upgrading to 2.15 or newer. Anyone else using an up-to-date OpenSSH will also have this problem and will be unable to access the server.
The alternative is to configure your system not to use Ed25519 for SSH to that system. If the remote system has the hostname
example.com, you can add something like the following to your
Host example.com HostKeyAlgorithms ecdsa-sha2-nistp521,firstname.lastname@example.org,ecdsa-sha2-nistp384,email@example.com,ecdsa-sha2-nistp256,firstname.lastname@example.org,rsa-sha2-512,rsa-sha2-256,ssh-rsa