correct proceeding logic on ssh detection