This can also be done in reverse to convert an OpenSSH key into the SSH2 format in the event that a client application requires the other format. This can be done using the following command:
Private key conversion:
The most important thing to remember when using these commands are the flags. The -i tells SSH to read an SSH2 key and convert it into the OpenSSH format. The -e parameter tells SSH to read an OpenSSH key file and convert it to SSH2. With these commands you should be able to successfully covert SSH keys between the different formats required by MessageWay as well as other file transfer