Fixed EOF hang problem in ht_ssh