Git Server and rights for ssh
I am setting up a Git server so I and push repos from my laptop to the server for backup purposes.
I have set up git on my laptop and I have setup egit for eclipse.
I have installed Git on my server running ubuntu 12.10,
ssh has been installed and is working.
I have created a bare repo.git and have ran the git init --bare
--shared command to set up the repo.
When I attempt to do the push from the laptop to the server ssh errors out, I am assuming because of file and directory permissions as I have to run sudo to access then from a manual ssh command.
My question: I do not want to chmod the files directories (repos) as the server is connected to the internet.
What is the best solution to grant read write access so eclipse can push the local repo to the server repo using ssh.
(I have not setup SSH2 keys yet. my laptop is running os x)