This blog post talks about how you can resolve the problem “ssh-keygen Unknown Option -G” on Ubuntu 20.04.
What is ssh-keygen -G and -T used for?
The command ssh-keygen -G was originally used to generate a list of prime numbers that could be used for key exchange.
Typically the list of primes to use are pre-generated as it can take some time. By regenerating them you can increase the security of key exchange protocols marginally.
Once the list or primes are generated you then need to screen them to check they are not inherently weak. To do this you would normally then call ssh-keygen -T on the list of generated primes to verify they were valid.
Once done you will have a file which can be used to replace your /etc/ssh/moduli file.
The new way of generating Moduli instead of -G and -T
The latest version of OpenSSH which Ubuntu 20.04 comes bundled with has changed the commands. Previously you would run the following commands.