1. Add an SSH Key:
[Html]
Ssh-keygen-t rsa-C "email address"
Enter the command and press Enter. The following prompt is displayed. Press enter.
[Html]
Enter file in which to save the key (/home/lqg/. ssh/id_rsa ):
Then, the system prompts you to enter the encryption string for key decoding:
[Html]
Enter passphrase (empty for no passphrase ):
Enter same passphrase again:
The following prompt is displayed:
[Html]
Your identification has been saved in/home/lqg/. ssh/id_rsa.
Your public key has been saved in/home/lqg/. ssh/id_rsa.pub.
The key fingerprint is:
91: 0f: 4e: ec: 89: ad: 3b: 75: d1: 32: a9: f1: 59: ee: 8f:
The key's randomart image is:
+ -- [RSA 2048] ---- +
|
|... |
| * O |
| *. = O |
|. S +. B |
|. O +. |
|... |
|... O. |
|... E |
+ ----------------- +
Next, vim ~ /. Ssh/id_rsa.pub, copy all content,
Go to the github page, select ssh key-add key in account setting, paste and save the copied content...
Run the following command to test:
[Html]
Ssh-T git@github.com
[Html]
Hi <em> username </em>! You 've successfully authenticated, but GitHub does not provide shell access.
2. Add a project library create a new repo On the github page. The Library name is username.github.com (I am lqgw.2.github.com );
Create a local folder with the same name
[Html]
Mkdir lqg1122.github.com
Cd lqg1122.github.com
3. Because we use the open-source blog framework Jekyll-Bootstrap, We need to download the code.
[Html]
Git clone https://github.com/plusjade/jekyll-bootstrap.git
Git add.
Git commit-m "submit information: first commit"
Git push origin master
After the code is submitted, wait a few minutes. Open username.github.com and you will be able to see a blog model. After self-modification, the blog will become your own blog .. If you are lazy, you need to install rake locally, and then enter the corresponding installation command for the topic in the project folder.
Just submit ..... Www.2cto.com
[Html]
Sudo apt-get install rake
Rake theme: install git = "https://github.com/jekyllbootstrap/theme-the-program.git"
Git add.
Git commit-m "submit information: first commit"
Git push origin master