Foreword
Use github upload hosting some of their own tools of code is an essential skill as a programmer. Here's github explains how to use ssh password-free way synchronization mode
Client generates public and private key
ssh-kengen -t rsa -C "some comments", after asking three times, hit enter
if it is cygwin client, you need to create a / home / user directory
Add the public key to github account
- Use landing pages github, add key in settings-> ssh keys->
- cat /home/user/.ssh/id_rsa.pub, paste content on the page
Test account login
ssh [email protected]
The authenticity of host 'github.com (192.30.252.131)' 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)? yes
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi robinchenyu! You've successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
Download the warehouse client should use ssh way
git clone [email protected]:username/projectname.git
git set the default user name
$ git config --global user.name "username"
$ git config --global user.email "address@mail"