Bug 2614 - ssh-keygen: Moduli generation not accepting start line and count options
Summary: ssh-keygen: Moduli generation not accepting start line and count options
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 7.2p2
Hardware: amd64 Linux
: P5 normal
Assignee: Darren Tucker
URL:
Keywords:
Depends on:
Blocks: V_7_4
  Show dependency treegraph
 
Reported: 2016-09-12 08:36 AEST by ju2wheels
Modified: 2018-04-06 12:26 AEST (History)
1 user (show)

See Also:


Attachments
Restore -J and -j options to ssh-keygen. (521 bytes, patch)
2016-09-12 11:03 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.