Fixed hangs on ssh commands #2