amazon web services - Can't Git Push onto AWS EC2 -


i've followed this blog post set remote git repo on our aws ec2 instance.

eventhough followed blog post , set rsa public & private keys on local machine , added public key remote aws ec2 server .ssh/authorised_keys not ssh rsa key. following error (i tried both public & private key).

$ ssh -i ~/.ssh/id_rsa_aws.pub ubuntu@5?.???.???.?4 agent admitted failure sign using key. permission denied (publickey). $ ssh -i ~/.ssh/id_rsa_aws ubuntu@5?.???.???.?4 agent admitted failure sign using key. permission denied (publickey). 

i continued setting git per blog post in hope git clone, pull & push abble ssh aws pem key.

i wrong , git push requires rsa key.

now error when try git push:

$ git push origin project-qa  agent admitted failure sign using key. total 0 (delta 0), reused 0 (delta 0) fatal: unable create '/var/git/project.git/refs/heads/project-qa.lock': permission denied fatal: remote end hung unexpectedly fatal: remote end hung unexpectedly 

any idea doing wrong? set permisions on remote aws ec2 instance with:

chmod 640 .ssh/authorized_keys chmod 750 .ssh 

the .ssh/authorized_keys file looks like:

ssh-rsa aaaa?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????xp qa-180615  ssh-rsa aaaab????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????gw== creed@creed-virtualbox 

could have aws key pair name , user name @ end of ~/.ssh/id_rsa_aws.pub key?


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -