Use a type for hostkey algo instead of a string.