Can anyone point me towards a file format for OpenSSH keys? Sample code would be fantastic but even a pointer towards the relevant RFC would be a big help.
As background, I have a C# program which needs to generate a ssh key at runtime. The program will be run on Windows, Linux and Mac so I'd prefer to generate the public/private key pair in C# rather than calling out to platform-specific tools/libraries. I can generate the components of a key using System.Security.Cryptography.RSACryptoServiceProvider but suspect I'm not then writing these out correctly.
Thanks.