don't use timeout for the remote prompt, recv() will block until input arrives