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?
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.
Fix applied, it will be in the 7.4 release. I also added a test cast for it. Thanks for the report.
Close all resolved bugs after release of OpenSSH 7.7.