I've recently set up ubuntu-server on Amazon EC2. I would like to use it as my git server, so I could store my repos there.
So, where can I find some detailed instructions of how to setup git on ubuntu server? All these SSH keys and stuff like that, multiple users, etc.
Best Answer
You can use the tutorial to install a Git server as aking1012 proposed you or you could just install SSH server on your EC2 instance (probably it would be wise to secure it and change the default port).
Git can be server-less you init your repository and then you access it from remote via SSH. So instructions like this on the Ubuntu Server should do it:
Finally install SSH on your server:
Now, you should configure SSH to secure it.
It's time to put your project online (the data you already have on your development machine):
And now you can start cloning around. You go on your development machine:
Check this excellent resource on Git.
And for generating your ssh keys for safer authentication, you can read this article about SSH authentication.