Skip to content

v2: failed to push tag: ssh: handshake failed: knownhosts: key mismatch #192

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

Open
pat-s opened this issue May 2, 2025 · 1 comment · May be fixed by #198
Open

v2: failed to push tag: ssh: handshake failed: knownhosts: key mismatch #192

pat-s opened this issue May 2, 2025 · 1 comment · May be fixed by #198

Comments

@pat-s
Copy link
Contributor

pat-s commented May 2, 2025

While git sv tag now works per se, I now often get

git sv tag
12:21AM FTL Execution error error="error generating tag version: 1.0.1: failed to push tag: ssh: handshake failed: knownhosts: key mismatch"

This can be resolved by removing the respective key from known_hosts.

git sv tag
12:25AM INF nothing to do: current version 1.0.1 unchanged

At this point the tag exists locally but hasn't been pushed yet. I need to do that manually then.

Yet it would be great if this the strict checking could be ignored via a flag when executing the command within git-sv. What do you think?

I already have StrictHostKeyChecking no in my SSH config (and I push via SSH), so I don't see what else I could do locally to prevent this from happening.

@xoxys
Copy link
Member

xoxys commented May 3, 2025

I dont see how and Im also wondering why your host key changes that often?

@pat-s pat-s linked a pull request May 23, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants