![]() ![]() Step 4: Create bin directory in /home/git and setup the Git-Admin account. $echo $HOME (The command will show what is your home directory) $whoami (The command will show you log in with which user) Step 4: Login with user git directly from terminal.ĭo not set password for user git. ![]() # mv /root/id_rsa.pub /home/git/Git-Admin.pub chown git:git /home/git/Git-Admin.pub Step3: Rename the id_rsa.pub file which you did scp from your system.And move the rename files to /home/git and change its owner & group with git Step 2: Create user git and change its gid and uid # yum -y install git httpd perl-Time-HiRes perl-Data-Dumper Step 1: Install git,http and perl dependency. Step B: Now scp the id_rsa.pub file into Git Server (Its our IP Address : 192.168.169.95) $ scp ~/.ssh/id_rsa.pub Login into the Git Server with user root. Just hit enter when it ask for setting passphrase password $ ssh-keygen -t rsa -C "Git-Admin" It will create two files id_rsa and id_rsa.pub in your system’s $HOME/.ssh directory. (means here I am talking about your client system) Step A: login into your linux pc from where you want to manage git server remotely. If it is $ means it is user called git log in.įollow the given below steps as it is : First start working from your pc ,not from git server.įirst start with creating RSA key in your system means your client machine (not git server).We will start working in Git Server after finishing steps in client PC. Note : If you see # sign it means root is log in. Gitolite is used for Git server with user/group management. And can be accesible through ssh and http both.Here Gitweb will be used for viewing repositories detail. Note:You can also use git server FQDN or hostname resolvable from your internal network or DNS. And Smart HTTP is configured in Apache, to access the Git server via HTTP.ĭescription of our server Arch: i686 / x86_64 Packages : Gitolite and Gitweb Git server ip address : 192.168.169.95 In this tutorial we will learn about,how to install own git server with ssh and http access by using gitolite and gitweb in CentOS.For user management in Git Server,we will use the Gitolite.For showing the repository list on web interface,we will use Gitweb. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |