Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo su git
mkdir -p /home/git/chun.git
cd /home/git/chun.git
git init --bare


STEP 3. Add client's public key to /home/git/.ssh/authorized_keys

Now you will need to setup your client in order to do the next steps. Regarding setup Git client, please refer one of belows:


Once you have a public key, you can do the next steps.


Connect to your Get server by SSH, and run below commands:

Code Block
sudo su git
mkdir -p ~/.ssh
vim ~/.ssh/authorized_keys

Once you run vim /~.ssh/authorized_keys , you should append the new public key.


Info

For better security, let us change file mode as following:

Code Block
chmod 700 /home/git/.ssh
chmod 600 /home/git/.ssh/authorized_keys





To be updated


Useful web sites

...