![]() ![]() gl-easy-install gitolite gitbox gitadmin Now you can run the gitolite installer using the gitolite code we downloaded. If port is not given it will default to 22. The installer command gl-easy-install takes the following arguments gl-easy-install Now you should be able to login to the remote machine as the gitolite user using the following… ssh gitbox exit vim ~/.ssh/config Host gitbox User gitolite Hostname gitbox Port 22 IdentityFile ~/.ssh/id_rsa_gitolite To make things simple on ssh side I recommend adding the configuration for the gitolite account to you ssh config. ![]() ![]() exit # from gitolite user exit # from remote machine Now it’s time to return to you local machine. ssh/authorized_keys rm id_rsa_gitolite.pub sudo cp id_rsa_gitolite.pub /home/gitolite sudo chown gitolite:gitolite /home/gitolite/id_rsa_gitolite.pubīecome the gitolite user sudo su - gitoliteĪnd add the gitolite public key to the list of authorized keys that can be used to login as this user. Now login to the remote machine ssh gitboxĪnd copy the key to the gitolite account. Now you’ll need to upload the public key to gitolite user account, so that we can log into that account using our private key. ~/.ssh/id_rsa_gitolite.pubĪnd the private key here. Hit return at the prompts to create the key without passphrase authentication. cd ~/.ssh ssh-keygen -t rsa -f id_rsa_gitolite cd ~ Here, I will create a public and private keypair with the name id\rsa_gitolite_. Therefore we’ll need to upload a ssh key for running the installer. Notice that when we created the user, we used –disable-password, which prevents us logging into the machine using a password. Now you can return to your local machine. In this example above /home/gitolite is where gitolite and your code repositories will live. sudo adduser \ -system \ -shell /bin/bash \ -gecos 'git version control' \ -group \ -disabled-password \ -home /home/gitolite gitolite I’m calling my user “gitolite”, but you can use “git” or anything else. You can replace this with your remote machine’s hostname or IP. Gitbox is the hostname of the remote machine I am using. You will need to setup the git user account on the remote machine, under which gitolite will run, so login. This will fetch the gitolite code from github. Therefore, you will want to download the gitolite installation code onto your local machine. The first thing to note about the gitolite install is that the installer is run remotely. In this post I will detail how I set this up. Gitolite enables easy management of this access control. Recently, netSIGN asked me to setup gitolite to give external developers controlled access to git repositories. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |