Bug 2614

Summary: ssh-keygen: Moduli generation not accepting start line and count options
Product: Portable OpenSSH Reporter: ju2wheels
Component: ssh-keygenAssignee: Darren Tucker <dtucker>
Status: CLOSED FIXED    
Severity: normal CC: dtucker
Priority: P5    
Version: 7.2p2   
Hardware: amd64   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2594    
Attachments:
Description Flags
Restore -J and -j options to ssh-keygen. none

Description ju2wheels 2016-09-12 08:36:11 AEST
Im trying to do moduli generation on Ubuntu 16.04 but it doesnt seem to be working for me. When I run the following after having generated the initial moduli file it simply exits by printing the ssh-keygen usage information (it works if I dont specify start line and count options though, so its as if it doesnt like the -J and -j cli options which are documented in the man page):

ssh-keygen -T /tmp/moduli.8192-1 -f /tmp/moduli -K /tmp/moduli.8192.chkpt -j 1 -J 183392

Also im on version 7.2p2 but I specified 7.2p1 in the version selection as that was the closest matching version when opening the ticket.

Is this expected behavior for it to exit and print usage for the above, am I executing it wrong or is it a bug?
Comment 1 Darren Tucker 2016-09-12 11:03:56 AEST
Created attachment 2874 [details]
Restore -J and -j options to ssh-keygen.

It looks like the -J and -j options were mistakenly removed in this sync commit: https://github.com/openssh/openssh-portable/commit/1d9a2e2849c9864fe75daabf433436341c968e14 .

Unfortunately this wasn't noticed because we build the moduli file on OpenBSD where the options still exist.
Comment 2 Darren Tucker 2016-09-12 12:26:57 AEST
Fix applied, it will be in the 7.4 release.  I also added a test cast for it.

Thanks for the report.
Comment 3 Damien Miller 2018-04-06 12:26:48 AEST
Close all resolved bugs after release of OpenSSH 7.7.