test SSH key validity