title: Python Paramiko scp.get() error
body: <p>What I am trying to do is use <a href="https://github.com/jbardin/scp.py" rel="nofollow">this</a> module to do scp with paramiko. I have successfully ssh'd, and used the <code>put()</code> method to scp files <em>to</em> the remote location. My problem arises when I try to scp a file <em>from</em> that location using the <code>get()</code> method. It gives me this error:</p>
  
  <p><code>scp.SCPException: scp: user@flibbertygibbit.com:/home/username/myfile: No such file or directory</code></p>
  
  <p>Problem is that that path <em>does</em> exist.</p>
  
  <p>Here is the relevant bit of code:</p>
  
  <pre><code>def download(file):
      scp = SCPClient(ssh.get_transport())
      scp.get('/home/{0}/{1}'.format(user.get(),file), 'C:\\Users\\Me\\Desktop')`
  </code></pre>
  
  <p><code>user.get()</code> referencing a tkinter StringVar containing my username, <code>file</code> being the name of the file.</p>
  
  <p><a href="https://codeshare.io/cNihX" rel="nofollow">Here</a> is the entire code, minus personal details, in case it helps.</p>
  
  <p>Output of <code>ls -ld /home/username/myfile</code>: </p>
  
  <p><code>-rw-rw-r-- 1 username username 145 Dec  1 13:50 /home/username/job.alf</code></p>
  
  <p>Output of <code>scp user@flibbertygibbit.com:/home/username/myfile .</code>:</p>
  
  <pre><code>C:\Users\Me&gt;scp user@flibbertygibbit.com:/home/username/myfile .
  Password:
  myfile                                       100%  145     0.1KB/s   00:00
  </code></pre>
  
  <p>Thank you very very much to anyone who can help me figure out why this is happening.</p>