Fix a bug caused by truncating ssh_out_file.