title: trying to copy an Ansible playbook from my local machine to remote host. But getting bad permissions
body: <p>I am trying to copy a playbook from my local machine to the host machine (EC2 Instance) but It says I have bad permissions, despite add my key-pair to <code>~/.ssh/id-rsa/ansible-benchmark.pem</code>.</p>
  <p><code>Ansible-benchmark.pem</code> being the key.</p>
  <p>The code I run is <code>scp /Users/mohammedkhot/Documents/terraform-consul/cis-playbook/main.yaml ec2-18-170-61-4.eu-west-2.compute.amazonaws.com:/etc/ansible</code>.</p>
  <p>I am trying to copy my <code>main.yaml</code> file to <code>/etc/ansible/</code></p>
  <p>I did also run <code>chmod 400</code> before trying to copy it but it didn't work.</p>
  <p>This is the error I am getting</p>
  <pre><code>@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  Permissions 0755 for '/Users/mohammedkhot/.ssh/id_rsa' are too open.
  It is required that your private key files are NOT accessible by others.
  This private key will be ignored.
  Load key &quot;/Users/mohammedkhot/.ssh/id_rsa&quot;: bad permissions
  mohammedkhot@ec2-18-170-61-4.eu-west-2.compute.amazonaws.com: Permission denied (publickey).
  lost connection```
  </code></pre>