public static String[] generateSSHRSAKeys() throws NoSuchAlgorithmException {

		KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA");
		generator.initialize(2048);
		KeyPair keyPair = generator.generateKeyPair();

		String[] keys = new String[2];
		keys[0] = getRSAPrivateKey(keyPair);
		keys[1] = getRSAPublicKey(keyPair);
		return keys;
	}
Generate private/public SSH RSA keys for test purposes using RSA algorithm.
@return kay pair array suitable for writing to SSH private and public 
key files ([0] corresponds to private key PEM file, [1] corresponds to public key file)
@throws NoSuchAlgorithmException failed to instantiate RSA key pair generator
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/server/remote/SSHKeyUtil.java