title: scp from remote server to ec2-instance
body: <p>I want to copy a folder from remote ubuntu to ec2-instance tried the below at remote ubuntu machine</p>
  <pre><code>scp -i &lt;/path/of/ec2_pemkey&gt; -r &lt;folder that I wanna copy&gt; user@&lt;ip of ec2&gt;:/path/where/I wanna/copy
  </code></pre>
  <p>I copied my pem to remote and changed permissions chmod 400 </p>
  <p>error: connection timed out</p>