fix 2 bugs: when time is no more than 1 second; ssh -p58422, not ssh -P58422