generating illustrates sshkey

I. Introduction:

What is ssh: ssh is an acronym for Secure Shell (Secure Shell protocol), the establishment of security protocol at the application layer and the transport layer basis. In order to facilitate access github, to generate ssh public key, so you do not have to enter each time you access github username and password.

Second, the generation condition:

Please register an account on github, locally installed git.

Third, the generating step:

1, after the success of the local git installed, click the right mouse button and choose Git Bush here, open the git bush.

2, type the command: ssh-keygen -t rsa -C "[email protected]", in quotation marks is your registered email on github, and then set up your ssh password, as shown:

3, the second step has been successfully generated ssh key, enter: eval "ssh-agent -s" FIG:

4, enter: ssh-add ~ / .ssh / id_rsa, then enter your ssh password is set, enter ssh-add ~ / .ssh / id_rsa may produce "could not open a connection to your authentication agent" error, as shown:

Direct Input time: ssh-agent bash, enter: ssh-add ~ / .ssh / id_rsa can, as shown:

5, the key to add to github account:

1) Copy the contents key with vim: vim ~ / .ssh / id_rsa.pub, right to copy the contents appear as:

2) added to the github

Find ssh keys setting in, as:


Just copy and paste the keys to.

6, the test:

Input: ssh -T [email protected], FIG described has been completed.

        

 

Guess you like

Origin blog.csdn.net/weixin_39702323/article/details/80577474