'How do I convert SSH Host Key Formats

I have a remote application that requires I enter the SSH Host Keys in a very specific format (hexadecimal without the "0x23,0x" prefix). I used to just connect an SSH session using PUTTY on Windows and I would then copy the SSH Host Key for that IP from my Windows Registry value which matched this format. However, the registry entries now show the SSH Host key in a different format (0x10001,0x) and this is not accepted by the remote application.

Apologies, but I'm not familiar with these formats, so I'm unsure how to search this properly. All the results I've found are for changing PEM and RSA files using keygen-tool, but I only have this as a long string and not formatted like a SSL Cert, PEM, etc.

I need to convert the (0x10001,0x) format to match with the (0x23,0x) format that this older application requires. Any assistance would be appreciated.

ssh


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source