github use - Configuration sshkey

Placed sshkey

Benefits: Every mention code do not enter a user name and password.

1, generate key: Enter the command ssh-keygen -t rsa -C "email address" [email address: Enter the e-mail address when registering github]

ssh-keygen -t rsa -C "[email protected]"

2, into the .ssh directory, copy the contents of id_rsa.pub to github -> SSH and GPG keys disposed above

 

cd ~/ .ssh 

 id_rsa.pub content:

 

 

Github local copy follows:

 

 

 

 

3. After the configuration test is successful ssh key, use the commandssh -T [email protected],出现下图则表示连接成功

 

Guess you like

Origin www.cnblogs.com/zddwork/p/11648886.html