title: creating a private key for AWS EC2 Instance
body: <p>Currently I have one computer properly set up to SSH into my EC2 instane, however I'm trying to connect another laptop as well. When I went to the AWS console to download another key pair and use it in Terminal to SSH, I get this error: Permission denied (publickey).</p>
  
  <p>I've already tried performing the command <code>chmod 400 /path/sshkey.pem</code> but I still get a public key error. Does anybody know why this is?</p>
  
  <p>Thanks so much!</p>
  
  <p>p.s. the command I'm performing to SSH to my ec2 instance is: <code>ssh -i /path/sshkey.pem ec2-user@ip.compute.amazonaws.com</code></p>