add hostkey to file