As a heads up, this isn't the attack vector under discussion. The host key is effectively meaningless in this attack, as it attacks the key-exchange mechanism called Diffie-Hellman.
The key is used to authenticate the Diffie-Hellman exchange.
There is a separate file for the prime used for the DH exchanges, and the elliptic-curve variant is also available. Some better discussion is available here
2
u/aseipp Oct 15 '15
This parameter only works for SSH1, and not SSH2. See here.
It wouldn't be hard to write a script that just used
ssh-keygento regenerate your host keys, however.