Bug 1668 - Add override option to ssh-keygen
Summary: Add override option to ssh-keygen
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 5.3p1
Hardware: All All
: P2 normal
Assignee: Oliver Ford
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-30 19:23 AEDT by jchadima
Modified: 2020-03-03 02:26 AEDT (History)
4 users (show)

See Also:


Attachments
Patch adding the override option to the ssh-keygen (2.65 KB, patch)
2009-10-30 19:25 AEDT, jchadima
no flags Details | Diff
The patch with changed override to overwrite (2.66 KB, patch)
2009-10-30 20:00 AEDT, jchadima
no flags Details | Diff
Patch suitable for openssh-5.6p1 (2.60 KB, patch)
2010-09-03 23:13 AEST, jchadima
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jchadima 2009-10-30 19:23:28 AEDT
When using ssh-keygen in the batch, promting the user causes hanging the script. Override option when selected causes rewriting the key without prompting.
Comment 1 jchadima 2009-10-30 19:25:54 AEDT
Created attachment 1714 [details]
Patch adding the override option to the ssh-keygen
Comment 2 jchadima 2009-10-30 20:00:59 AEDT
Created attachment 1715 [details]
The patch with changed override to overwrite

Changed the word override to owerwrite in the patch. This will sound better :)
Comment 3 Damien Miller 2009-11-04 16:06:15 AEDT
If you want to overwrite, why not just rm the key first?
Comment 4 jchadima 2009-11-04 18:16:05 AEDT
The patch should prevent the program from asking in every situation.
If there is an immutable key file, the rm does not delete it, and the ssh-keygen hang. Of course the output of rm can be tested but this make the whole thing complicate. The correct way is to make option(s) for overwriting(keeping) the file w/o asking the user.
Comment 5 jchadima 2010-09-03 23:13:32 AEST
Created attachment 1916 [details]
Patch suitable for openssh-5.6p1