Gitolite installation Manual

Gitolite installation Manual

 

1)Environment for installing

 

ServerNamer:your-server

The “hostinguser” on the server:git

Clienton the workstation: your-client-name

 

2)step by step for installing and upgrading

 

l        On your workstation:

(Note: Here the workstation and server isthe same one, and that is Your-server)

Userid: your-client as example

copy your ~/.ssh/id_rsa.pub fileto /tmp/YourName.pub (YourName.pub for example)on theserver

l        On your server:

Hosting user : git

(Note: check if $HOME/binis on the default PATH. If not, please add it to the.bashrc.)

 

git clonegit://github.com/sitaramc/gitolite

cdgitolite

src/git-system-install

(note:default config as fllowing:

src/git-system-install$HOME/bin $HOME/share/gitolite/config$HOME/share/gitolite/hooks)

git-setup/tmp/YourName.pub

 

l        On your workstation:

 

git clonegit@your-server:gitolite-admin

 

next is for the

 

3) SSH troubleshooting for installing

SSH daemon asks for a password, next is thequick checklist:

1) When you create an ssh keypair using ssh-keygenon your workstation,just hit enter for withoutpassphrase.And Be sure to add apassphrase later using ssh-keygen–p.

2) ssh is very sensitive to permissions. Besure to do this on both client(userid: Your-client) and server(userid:git).

cd $HOME

chmodgo-rwx .

chmodgo-rwx .ssh

 

 

3) you should check /etc/ssh/sshd_config tosee if the "git" user is allowed to login at all. Please add git to AllowUsers.

4) if all above failed, please check files /var/log/auth.log or /var/log/secure. These files willtell you what is the problem.

 

 

Document for Reference

Installation:http://sitaramc.github.com/gitolite/doc/1-INSTALL.html

Gitoliteand ssh: http://sitaramc.github.com/gitolite/doc/gitolite-and-ssh.html

SSH troubleshooting: http://sitaramc.github.com/gitolite/doc/ssh-troubleshooting.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值