2

I tried following this doc...

https://help.ubuntu.com/community/Git

...but unfortunately the "initialKeyFileName" step is not explained.

2

It says on the top:

  • You already have a public ssh key on your local machine you can use that to initialize the repository. Don't have one? Look here.

The linked article is great, should be no problem to follow it.

  • Wow. I missed that. Need to slow down a bit. – ServerChecker Jun 25 '11 at 20:13
1

Sparkle Share – Git server installation in Ubuntu 10.04

I am starting with an empty Ubuntu server 10.04 with just openssh installed. I assuming that you can access you server from http://mydomain.com

Install Git

aptitude build-dep git-core
apt-get install git-core
git --version   #(not necessary just to insure that is installed)

Add user git

adduser --disabled-password git
git init --bare /home/git/MyProject  #(your projects folder, named as you like)

Make a key file in order to login without a password

mkdir /home/git/.ssh
touch /home/git/.ssh/authorized_keys

Edit file /home/git/.ssh/authorized_keys and paste your key. You can find it your projects file as .txt file at The client side.

pico /home/git/.ssh/authorized_keys

Change owner and permissions on files

chmod 700 /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys
chown -R git:git /home/git

Add your server in client

mydomain.com      ,        /home/git/MyProject
0

I've create a document here about install git on Debian box, i think that you may follow the same step on a Ubuntu

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.