Hi,

I am unable to get the SSHD to properly read a key generated using
'ssh-keygen -t rsa'. I've traced the problem down to the
SimpleGeneratorHostKeyProvider instance throwing a StreamCorruptedException
when trying to return the result from the method doReadKeyPair(is). The
message attached to the exception is as follows: "invalid stream header:
2D2D2D2D". Since it is unable to read the provided keys, it overwrites my
key and proceeds while using this new key.

I have noticed when I run the SSHD again using the key generated within the
SSHD, there are no issues reading the file.

Is there an incompatibility with the keys generated by the ssh-keygen
command? Can SSHD only use keys generated by itself?

Thanks,
Clement Tse

Reply via email to