title: pxssh error 'could not synchronize with original prompt'
body: <p>I have been getting the below error while using pxssh to get into remote servers to run unix commands ( like uptime )</p>
  
  <pre><code>Traceback (most recent call last):
  </code></pre>
  
  <p>File "./ssh_pxssh.py", line 33, in 
      login_remote(hostname, username, password)
    File "./ssh_pxssh.py", line 12, in login_remote
      if not s.login(hostname, username, password):
    File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pexpect/pxssh.py", line 278, in login</p>
  
  <pre><code>**raise ExceptionPxssh ('could not synchronize with original prompt')
  </code></pre>
  
  <p>pexpect.pxssh.ExceptionPxssh: could not synchronize with original prompt**</p>
  
  <p>Line 33 is where I call this function in main.</p>
  
  <p>The function I am using is here :</p>
  
  <pre><code>def login_remote(hostname, username, password):
      s = pxssh.pxssh()
  s.force_password = True
  if not s.login(hostname, username, password, auto_prompt_reset=False):
      print("ssh to host :"+ host + " failed")
      print(str(s))
  else:
      print("SSH to remote host " + hostname + " successfull")
      s.sendline('uptime')
      s.prompt()
      print(s.before)
      s.logout()
  </code></pre>
  
  <p>The error does not come each time I run the script. Rather it is intermittent. It comes 7 out of 10 times I run my script.</p>