Install Github in Centos6.6

Source: Internet
Author: User
Install github # compile after yuminstallgit is complete

Install github first

# Yum install git

After completion

Https://help.github.com/articles/generating-ssh-keys/#platform-linux official settings tutorial at this URL

 

Let me explain my configurations.

 

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Run this code your_email@example.com is your own github mailbox... Don't ask me how to register github... Baidu.

Tip:

Generating public/private rsa key pair.
Appears:
Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
Press enter
Enter passphrase (empty for no passphrase): [Type a passphrase]# Enter same passphrase again: [Type passphrase again]
Enter the password twice to obtain the sshkey.

Tip:

Your identification has been saved in /Users/you/.ssh/id_rsa.# Your public key has been saved in /Users/you/.ssh/id_rsa.pub.# The key fingerprint is:# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@example.com
Run:
eval "$(ssh-agent -s)"# Agent pid 59566
Green indicates success.

Run Again

Ssh-add ~ /. Ssh/id_rsa

The next step is different from what the official team said, because I didn't install xclip because I didn't install X11 or anything... I will discuss with you later)

Run:

cat ~/.ssh/id_rsa.pub
Will get a key starting with ssh-rsa and ending with the your_email@example.com

Then get the key

Log on to the github website and Add it. this tutorial is available on the official website. Add it in the SSH keys of setting, and all posts will be posted.

After successful addition

Run:

 

ssh -T git@github.com
Check whether the link is on

When the following two codes appear, you can handle them easily.

The authenticity of host 'github.com (207.97.227.239)' can't be established.# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.# Are you sure you want to continue connecting (yes/no)?
# Hi username! You've successfully authenticated, but GitHub does not# provide shell access.
How to pull the project down

Cd to the directory you want to pull... Okay, change the word and store it in the directory.

Run

git clone https://github.com/JustLittleBoy/One.git
If an index. php file exists in One folder under your directory, it will be OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.