fix parsing of ssh state