title: paramiko SFTP hangs on get
body: <p>I'm trying to use paramiko to get a file via SFTP.
  It connects, I can list directories and it even downloads the first megabyte or so of the file but then it just hangs. No exception, no error, nothing. It just hangs there indefinitely.</p>
  
  <p>Here's the code I'm working with:</p>
  
  <pre><code>import paramiko
  t = paramiko.Transport( host )
  t.connect( username=uname, password=passwd )
  f = paramiko.SFTPClient.from_transport( t )
  print f.listdir()
  f.get( fname, fname ) #it hangs on this line :\
  </code></pre>
  
  <p>I have sftp access to the host in question but no shell access.
  The host contains a single file that I need to fetch regularly and process in a python script.</p>
  
  <p>Any help with this problem or alternate solutions to doing SFTP in Python are greatly appreciated :)</p>