Skip to content

failed to clone repository: ssh: handshake failed: knownhosts: key mismatch #2114

Answered by GZYproduction
slyons asked this question in Q&A
Discussion options

You must be logged in to vote

I had the same problem, but just running the flux bootstrap git ... with the --private-key-file option didnt solve it for me.

What did solve the problem is actually a funny bug:

  1. When the entry in the .ssh/known_hosts was made by my ssh client the flux bootsrap failed.
  2. When the known_hosts entry was made by my git client with like git clone <repo> then the command worked again.

So maybe this will help someone in the future:

  1. delete the entry in the .ssh/known_hosts file
  2. make a git pull <repo> somewhere and accept the Are you sure you want to continue connecting (yes/no/[fingerprint])?
  3. flux bootstrap git ... should work again

Replies: 6 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@hiddeco
Comment options

@mariusrugan
Comment options

@bennyandresen
Comment options

@bennyandresen
Comment options

@mariusrugan
Comment options

Comment options

You must be logged in to vote
1 reply
@carlbordum
Comment options

Comment options

You must be logged in to vote
1 reply
@ackers-bud
Comment options

Answer selected by stefanprodan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants