refactor SSH enum