![]() ![]() The authenticity of host ' (192.168.116.129)' can't be established.ĮCDSA key fingerprint is SHA256:PhsrMh10ZgS3G8P/upEd5bIbjTbUW0Asbbgtsq9圓Xs.ĮCDSA key fingerprint is MD5:24:af:0c:3a:33:39:2b:2a:d5:3d:64:05:a2:b6:a1:b8.Īre you sure you want to continue connecting (yes/no)? yes $ ssh-copy-id INFO: Source of key(s) to be installed: "/home/ahmer/.ssh/id_rsa.pub" SHA256:qJKo3QumkS/Rz/LOqR3gCEOdYH9lLaeGgS1B/QkqrkE key's randomart image is: Your public key has been saved in /home/ahmer/.ssh/id_rsa.pub. Your identification has been saved in /home/ahmer/.ssh/id_rsa. Git is already installed on, therefore, yum didn't perform any installation.Ĭonnect as ahmer user and configure keybased-authentication between and $ ssh-keygenĮnter file in which to save the key (/home/ahmer/.ssh/id_rsa):Įnter passphrase (empty for no passphrase): ![]() Our git server has been successfully configured and we have created an empty repository for our first git project.Ĭonnect to using ssh with root user.Ĭonfigure name resolution by adding following line in /etc/hosts. Git access remote repositories via ssh service, therefore, no explicit Linux firewall configuration is required. While a shared repository is used to allow project members to push changes to the git server.Įnable post-update hook by copying the sample file as follows: $ cd ~/repo/project1/hooks/ ![]() Note: A bare repository has no working area, therefore, it is not possible to add files to it locally. Then, we have created a bare repository for our project1 project. Here, we have created a directory repo to keep all of our projects' repositories in a single place. Initialized empty shared Git repository in /home/git/repo/project1/ ![]() Now, login with git user and create a local git Repository. Passwd: all authentication tokens updated successfully. Therefore, we add git user and set the password as follows: # useradd gitīAD PASSWORD: The password is shorter than 8 characters We need a user to own our git repository. Git rpm is provided in RHEL/CentOS ISO, therefore we can easily install git from a local yum repository.Ĭonnect to using ssh, and install git by using yum command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |