title: How to download from double hop SFTP?
body: <p>I am new to linux and am having trouble doing this.  </p>
  
  <p>I need to download files and this is currently what I do to access the file. </p>
  
  <p>SSH into server A.</p>
  
  <p>From server A, SSH to server B</p>
  
  <p>After logging into server B, run the following command:</p>
  
  <pre><code>sudo -i -u testuser
  </code></pre>
  
  <p>I enter a password and then I have the privileges I need.</p>
  
  <p>How would I replicate this with WinSCP?  I can login to the server following the guide here:
  <a href="https://superuser.com/questions/303486/sftp-over-double-server-hop">https://superuser.com/questions/303486/sftp-over-double-server-hop</a></p>
  
  <p>But I cannot download the files because I don't have permissions.  How do I execute that sudo command and enter a password in the login process using WinSCP?  Or an alternative program (that runs on OSX).  My ultimate goal is to download a file form the(double remote) computer to my local computer.</p>