In what format are SSH host keys stored?
If I access an SFTP server that returns the following public key:
...and then I access the following Registry location:
...the public key has been stored like this:
What format is that?
The reason I ask is that I have a use case where I need to manually add a public key to the registry, but that would require reproducing that format.
As a follow-up question, if it would be better to use the winscp.ini file instead, how do I configure the .NET WinSCP assembly to use this file, rather than the registry?
W6/lu6bST+BmHRgO862W2dsjjV3jwntPyCYt1eDokiQ=
HKEY_CURRENT_USER\SOFTWARE\Martin Prikryl\WinSCP 2\SshHostKeys
0x10001,0xb243b208746807d29a67f0a2b9737b4f7938658fa6f842a09692d5c05c24e4144e4469dc235f3ffee0b2eaa786f3a98bfe59d2032d8990b7ad828422bf6c1ac125c3c7356f2c63ef3cb617bc9488d47cff4cb368286413d09ce031c72fdd5fc81129d6a9368e7c20007773a8b4b8dfdfa257d4d5218c9528de1b03891a47204c5d75e9405d8830670e513bdf3f1cbb197ccff83128e3b0f458e426df6ecb93860518833ecfb4faaf5411e9f0e3ef6aebf348ed886816cf550bb27990351e2ca838977eec51b46766a918f8a3911899d1d289399d958f222469e1b6ecb47a3fcb9ead4353314b45ccca121524b98d82d2e8331958d6a3d9a31dfc2e42bdba1711
What format is that?
The reason I ask is that I have a use case where I need to manually add a public key to the registry, but that would require reproducing that format.
As a follow-up question, if it would be better to use the winscp.ini file instead, how do I configure the .NET WinSCP assembly to use this file, rather than the registry?