Also, this must be done from the Terminal.
This step won’t need to be repeated unless your public key or your account names changes. You can type yes and press Enter, which will add your account’s hostname to a KNOWN_HOSTS file. You’ll most likely encounter a message that looks like this: The authenticity of host ' (204.232.132.2)' can't beĮstablished. If you are using another version control hosting service, the URL would be provided by them. Enter the following command in the Terminal, replacing accountname with your account name: ssh this case, this is the URL to access Git on your Beanstalk account. In your Beanstalk account, the added SSH key will look like this: Checking your connectionīefore trying to access your Git remote repository, check if the connection to your remote hosted Git repository works. JgsyHcuJT7v9Tf0xwiFWOWL9WsWXa9fCKqTeYnYJhHlqfinZRnT/+jkz0OZ7YmXo6j4Hyms3RCOqenIX1W6gnIn+eQIkw= Now copy the key to your clipboard, your key should look like the following: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyyA8wePstPC69PeuHFtOwyTecByonsHFAjHbVnZ+h0dpomvLZxUtbknNj3+Ĭ7MPYKqKBOx9gUKV/diR/mIDqsb405MlrI1kmNR9zbFGYAAwIH/Gxt0Lv5ffwaqsz7cECHBbMojQGEz3IH3twEvDfF6cu5pĠ0QfP0MSmEi/eB+W+h30NGdqLJCziLDlp409jAfXbQm/4Yx7apLvEmkaYSrb5f/pfvYv1FEV1tS8/J7DgdHUAWo6gyGUUSZ You will also be prompted for an optional pass phrase that will be required each time the key is used, while optional, it is highly recommended to setup a strong pass phrase for the key. # Change into home directory:Īfter entering ssh-keygen you will be prompted for the location of the key pair, the default location ( /home/$(whoami)/.ssh/id_rsa.pub) is sufficient. In terminal execute the following commands in order to generate a key pair. If installing does not succeed, use the EPEL repository. Note: Depending on your release of Red Hat / Fedora, Git may not be available in the primary repository. # Debian/Ubuntu:Īpt-get install git-core # Red Hat/Fedora:
# Configure the source code for compilation:Įxecute the following commands to install Git, based on your distribution (as root or using sudo). Once downloaded open up your terminal and change into the directory where it was downloaded, then execute these commands. Source Codeĭownload the latest Git source package. Git can be installed using automated package management utilities such as apt or yum, alternatively Git can also be compiled from source code. This guide will walk you through the steps to install and configure Git to begin developing using the Git version control system.
Installing and configuring Git on Linux is a very straightforward process as Git was natively developed for the Linux platform.