[GH-ISSUE #192] v2: failed to push tag: ssh: handshake failed: knownhosts: key mismatch #11

Closed
opened 2026-03-04 00:40:51 +03:00 by kerem · 1 comment
Owner

Originally created by @pat-s on GitHub (May 2, 2025).
Original GitHub issue: https://github.com/thegeeklab/git-sv/issues/192

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.

Originally created by @pat-s on GitHub (May 2, 2025). Original GitHub issue: https://github.com/thegeeklab/git-sv/issues/192 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.
kerem closed this issue 2026-03-04 00:40:52 +03:00
Author
Owner

@xoxys commented on GitHub (May 3, 2025):

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

<!-- gh-comment-id:2848450315 --> @xoxys commented on GitHub (May 3, 2025): I dont see how and Im also wondering why your host key changes that often?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-sv#11
No description provided.