title: pxssh connecting to an ssh proxy; Timeout exceeded in read_nonblocking()
body: <p>So I have tried a couple of modules both pxssh, pexpect, etc and I can't seem to get an ssh connection to our ssh proxy to work. Basically what I am wanting to do, is use our SSH proxy, which has access to the rest of our devices as a jumping point to the other devices, then run a command. This works in ipython, however when it connects it raises the exception listed below, however it continue with the rest of the commands and works fine. However when just ran as a python script it just causes the script to fail. I would assume it's failing because of the exception. Is there a way to turn off the exception, or keep it from bailing out? Or am I doing this all wrong?</p>
  
  <p>I have also tried messing with the prompt settings and auto_prompt_reset settings...</p>
  
  <p>The proxy host isn't a true linux host, or cisco for that matter, which is probably why the defaulting settings don't work. </p>
  
  <p>Not really sure where to go from here, so any help or insight would be great.</p>
  
  <pre><code>import pxssh
  s = pxssh.pxssh()
  hostname = '10.10.10.4'
  username = 'username'
  password = 'password!'
  s.login (hostname, username, password)
  s.sendline ('connect 10.10.5.1')  
  s.prompt(timeout=2)      
  print s.before   
  s.endline ('')
  s.sendline ('show run')
  s.prompt(timeout=2)
  print s.before  
  </code></pre>
  
  <p>Exception that gets posted.</p>
  
  <pre><code>In [40]: s.login (hostname, username, password)
  ---------------------------------------------------------------------------
  TIMEOUT                                   Traceback (most recent call last)
  &lt;ipython-input-40-51f00f2075f5&gt; in &lt;module&gt;()
  ----&gt; 1 s.login (hostname, username, password)
  
  /usr/lib/python2.7/dist-packages/pxssh.pyc in login(self, server, username, password, terminal_type, original_prompt, login_timeout, port, auto_prompt_reset)
      241             self.close()
      242             raise ExceptionPxssh ('unexpected login response')
  --&gt; 243         if not self.synch_original_prompt():
      244             self.close()
      245             raise ExceptionPxssh ('could not synchronize with original prompt')
  
  /usr/lib/python2.7/dist-packages/pxssh.pyc in synch_original_prompt(self)
      132         # If latency is worse than these values then this will fail.
      133 
  --&gt; 134         self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache     before getting the prompt
      135         time.sleep(0.1)
      136         self.sendline()
  
  /usr/lib/python2.7/dist-packages/pexpect.pyc in read_nonblocking(self, size, timeout)
      822                 raise EOF ('End of File (EOF) in read_nonblocking(). Very pokey     platform.')
      823             else:
  --&gt; 824                 raise TIMEOUT ('Timeout exceeded in read_nonblocking().')
      825 
      826         if self.child_fd in r:
  
  TIMEOUT: Timeout exceeded in read_nonblocking().
  </code></pre>