Skip to content

ssh-tpm-keygen: respect "n" at the overwrite prompt - #146

Merged
Foxboron merged 1 commit into
Foxboron:masterfrom
leohike:keygen-overwrite-prompt
Oct 30, 2026
Merged

Foxboron merged 1 commit into
Foxboron:masterfrom
leohike:keygen-overwrite-prompt

Conversation

@leohike

@leohike leohike commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Since e4a46e2 moved the check into checkFile, declining returned nil and keygen silently replaced the existing key. Return an error so it exits before writing.

Extend keygen.txt to cover both declining and accepting the overwrite.

Fixes: #127

Since e4a46e2 moved the check into checkFile, declining returned nil
and keygen silently replaced the existing key. Return an error so it
exits before writing.

Extend keygen.txt to cover both declining and accepting the overwrite.

Fixes: Foxboron#127
@Foxboron

Copy link
Copy Markdown
Owner

ack, thanks

@Foxboron
Foxboron merged commit 440f7fb into Foxboron:master Oct 30, 2026
5 checks passed
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 this pull request may close these issues.

"Overwrite?: y/n" overwrites anyway

2 participants