I\'m looking for a way to programmatically create ssh compatible id_rsa and id_rsa.pub files in Java.
I got as far as creating the KeyPair:
KeyPairG
As Carsten has mentioned, JSch can generate those keypair easily. Refer to its example, KeyGen.java