stormcat24 / protodep

Collect necessary .proto files (Protocol Buffers IDL) and manage dependencies
Apache License 2.0
294 stars 56 forks source link

Error: clone repository: ssh: handshake failed: knownhosts: key mismatch #99

Open avarabyeu opened 2 years ago

avarabyeu commented 2 years ago

OS: MacOS Monterey 12.5.1 SSH Configuration seems to be fine, ssh -T git@github.com works

seosite commented 2 years ago

you need ssh-add ~/.ssh/id_rsa

pdevillard commented 1 year ago

In my case, it turns out that my key in known host was obsolete.

  1. Open ~/.ssh/known_hosts, search for github, remove the line.
  2. Run ssh -T git@github.com and accept the key
  3. Run protodep up

Alternatively, ssh-keygen -R github.com should work as well.