issue 1321: Fixed infinite loop problem in ht_ssh during connect