내가 뭘 잘못하고 있는지 이해하도록 도와주세요. CentOS 6.4에 서버가 있고 gitolite v3를 설치해야합니다. 나는 무엇을하고 있는가?CentOS 6.4에서 gitolite v3을 설치하십시오. 두 번째 사용자가 암호를 묻는 중
yum install git* perl-Time-HiRes
useradd -m --system --shell /bin/bash --user-group gitolite
su - gitolite
mkdir bin
echo "PATH=$HOME/bin:$PATH" > .bash_profile
source .bash_profile
ssh-keygen -t rsa
cp .ssh/id_rsa.pub ./gitolite.pub
git clone git://github.com/sitaramc/gitolite
gitolite/install -ln
gitolite setup -pk gitolite.pub
가 성공적으로 설치 : 첫째로 나는 다음 명령을 사용하여 하나를 설치입니다. 나는 gitolite-관리 저장소 복제보다 :
git clone gitadmin:gitolite-admin
cd gitolite-admin/keydir
을 그리고 난 편집의 conf/gitolite.conf보다 새 사용자의 공개 키 (lodar.pub)
ssh-keygen -t rsa -f lodar
mv ./lodar ../../.ssh/lodar
생성 :
repo gitolite-admin
RW+ = gitolite
repo testing
RW+ = @all
repo empty
RW+ = lodar
을
git add keydir/lodar.pub
git commit -m 'add user lodar and new repo empty'
git push
: 모든 변경 사항을 커밋
그리고 그게 전부입니다. 푸시도 성공했습니다. 모든 조작 후 내가 스푸핑/설정
Host gitadmin
User gitolite
Hostname 192.168.0.1
Port 22
IdentityFile ~/.ssh/gitolite
Host gitlodar
User gitolite
Hostname 192.168.0.1
Port 22
IdentityFile ~/.ssh/lodar
을 생성하지만
ssh gitlodar info
[email protected]'s password:
사용하여 연결하려고하면 내가 암호를 입력해야합니다.
ssh gitadmin info
hello, gitolite, this is [email protected] running gitolite3 v3.5.1-4-g2f48a3e on git 1.7.1
R W gitolite-amdin
R W testing
내가 뭘 잘못하고 있니?
나는'cp'가 아니라'mv'가 아니라는 것을 이해하고 있지만 아래 답변에서 언급했듯이'~/.ssh/config' 파일에서'gitolite'가되어야한다는 것을 확신 할 수 있습니다. 항상'gitolite'. – VonC