fix ssh detection