I have a rather unusual problem. I will spare you the details, but on one CentOS 7 server I need to create a new RSA key. We would normally use this command:
ssh-keygen -h -f /etc/ssh/ssh_host_rsa_key
However, this command creates the key with Public Exponent 65537 (0x10001). But for compatibility reasons with one application I need the key to be created with Public Exponent 35 (0x23), just as was the default with CentOS 5 and CentOS 6.
Any help would be appreciated.