How to configure the remote GIT in Amazon AWS?

1

I made an AWS account and I'm having difficulty organizing and configuring repositories with GIT.

I already have APACHE, PHP and MYSQL and GIT installed. I created a / var / git folder to organize the repositories, and subfolders for each client: git / client1 /

I started the repository with "git --bare init" within /git/client1/client1.git

However, when I give "git push origin master" it tells me that the public key is invalid (permission denied - public key)

I tried setting up public key but I was not successful. Can you help me?

    
asked by anonymous 06.07.2016 / 03:18

1 answer

1

You need to create the repositories locally, commit the files, send them to the remote repository, and then clone them in your AWS instance.

First of all, create the remote repositories in the service of your choice (Github, Bitbucket etc).

Then, in order for you to send your local repositories to their corresponding remote repositories, you need create a key pair (being a public key and private) and then make commit and then push .

Finally, you can clone the repositories in your AWS instance. You can do this by using the same private / public keys, or by using deploy keys . The difference is that a deploy key gives you access to a single repository, while private / public keys give you access to all of your user repositories. It is of your own need.

    
06.07.2016 / 09:37