Several projects and applications cannot handle newer SSH key formats, so to use the legacy PEM format for RSA keys, follow the steps below:
ssh-keygen -b 3072 -C <optional comment> -t rsa -m PEM -f <private key name>.pem [-P <password>]
ssh-keygen -y -t rsa -f test [-P <password>]