title: paramiko ssh client does not work with HP switches
body: <p>I've been using my script for a unix server and it's working perfectly. However when i use the same script( with some minor command changes) to connect to HP Procurve switches , script crashes with error. Part of the script is below:</p>
  
  <pre><code>ssh = paramiko.SSHClient()
  ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  ssh.connect(address, username=userna, password=passwd)
  
  stdin,stdout,stderr= ssh.exec_command("show ver")
  
  for line in stdout:
      print '... ' + line.strip('\n')
  
  ssh.close()
  </code></pre>
  
  <p>This gives error </p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Users/kucar/Desktop/my_python/switchmodel", line 34, in &lt;module&gt;
  stdin,stdout,stderr= ssh.exec_command("show ver")
  File "C:\Python27\lib\site-packages\paramiko\client.py", line 379, in exec_command
  chan.exec_command(command)
  File "C:\Python27\lib\site-packages\paramiko\channel.py", line 218, in exec_command
  self._wait_for_event()
  File "C:\Python27\lib\site-packages\paramiko\channel.py", line 1122, in _wait_for_event
  raise e
  SSHException: Channel closed.
  </code></pre>
  
  <p>I've found similar complaints in the web however seems like solution is not provided at all. Switch is open to ssh and works fine with putty. Appreciate if you give any ideas that could help me. I cannot do "show ver" command manually for 100 switches.</p>