I am new to AWS and followed a tutorial to set up git in aws and the push my local files into it. I have a Key with me with .pem extension which got generated while I was creating the instance. I have added the remote repository like this: git remote add production ssh://root@35.154.37.131/var/repo/site.git
after this when I tried to push into the repository I got:
$ git push production master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.