Corrected SSH key detection