On Thu, Feb 7, 2013 at 12:44 PM, karthik kgm <[email protected]> wrote:
> my gitolite installtion Steps : > > 1. gitoliteadmin user created in my local > > 2. ssh key generated for gitoliteadmin user and I have cp pub key in ssh > folder to gitoliteadmin's home folder. > > pwd: /home/gitoliteadmin > > cp .ssh/id_rsa.pub gitoliteadmin.pub (it will cp the pub key file and > stored it in gitoliteadmin's home folder) > > 3. gitolite user created in server, and bin folder created in the > gitolite's home folder. > > 4. I moved gitoliteadmin.pub key from my local machine to server in > gitolite's home folder > > 5. I have cloned gitolite from - "git clone > http://github.com/sitaramc/gitolite.git" (gitolite cloned to /iqs folder) > > 6. I have installed gitolite, (I excute following commands) > > /iqs/gitolite/install -to /home/gitolite/bin (result - no errors) > > /home/gitlite/bin/gitolite setup -pk gitoliteadmin.pub (result - no > errors) > > 7. In my local I cloned that gitolite-admin from server, > > git clone [email protected]:gitolite-admin > > **In this stage in doesn't ask password, but it asks password to clone the > gitolite-admin project. > > Please assist me and let me know what mistake I did. I think it must be either key or permission issue. 1). You have to create the key pair in your local machine and save this key-pair “git” (here git is private and public key file name) by using: I already have user "mohan" in my local machine (for you your local user account is "gitoliteadmin"). $pwd /home/mohan $ cd ~/.ssh $ ssh-keygen -t rsa -f git I can see that the 2 keys have been created. $ ls -l ~/.ssh/git* -rw------- 1 mohan mohan 1679 23 Jul 19:58 /home/mohan/.ssh/git -rw-r--r-- 1 mohan mohan 396 23 Jul 19:58 /home/mohan/.ssh/git.pub “git” is the private key and “git.pub” is the public key. Upload the public key to the root user’s account on the remote machine. $ cd .ssh $ pwd /home/mohan/.ssh $ ls -l git* -rw------- 1 mohan mohan 1679 23 Jul 19:58 /home/mohan/.ssh/git -rw-r--r-- 1 mohan mohan 396 23 Jul 19:58 /home/mohan/.ssh/git.pub $ scp ~/.ssh/git.pub [email protected]: [email protected]'s password: git.pub 2). Now login to the root users account on the remote machine $ ssh [email protected] I have already created a user account "git". # cd /home/git/ # pwd /home/git # cp /root/git.pub ./ # ls -l git.pub -rw-r--r-- 1 git git 398 Nov 29 2011 git.pub Please verify your steps. And also you can change "gitoliteadmin.pub" file name into "gitolite.pub" in your remote server because your remote machine user account is gitolite(It may be issue but I am not sure). Thanks Mohan L _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
