title: PSCP file from Windows to Linux using private/public keys
body: <p>I can transfer file using PSCP:</p>
  
  <pre><code>C:\&gt;pscp -pw &lt;password&gt; -r -p &lt;path of the file&gt;  user@Server:&lt;path file to stored&gt;
  </code></pre>
  
  <p>But not using the public/private key.</p>
  
  <p>Steps followed:</p>
  
  <ol>
  <li><p>Generate public and private keys using PuTTYgen.</p></li>
  <li><p>Copy the public key to authorized_keys of Remote Server</p></li>
  <li><p>Save the private key to key.ppk in Windows server</p></li>
  <li><p>Then </p>
  
  <pre><code>C:\&gt;pscp -i privatekey pathofthefile user@server:pathfiletostored
  </code></pre></li>
  </ol>
  
  <p>It gives "Fatal: Network error: Connection refused"</p>
  
  <p>Can someone please help?</p>