Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
avarabyeu opened this issue Sep 6, 2022 · 2 comments

Comments

@avarabyeu
Copy link

OS: MacOS Monterey 12.5.1
SSH Configuration seems to be fine, ssh -T [email protected] works

@seosite
Copy link

seosite commented Sep 8, 2022

you need ssh-add ~/.ssh/id_rsa

@pdevillard
Copy link

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 [email protected] and accept the key
  3. Run protodep up

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants