https://blog.csdn.net/awp0011/article/details/73368481
The first time you use github.com
executed locally git clone [email protected]: xxxxx / xxxxx.git
Exception information:
Permission denied (publickey).
fatal: Could not read from remote repository.
The reason is not required for encryption keys during SSH login,
so we need to generate a password
keygen -t-RSA SSH
. 1
in ~ / .ssh / three files
id_rsa
id_rsa.pub
known_hosts
Will copy the contents of id_rsa.pub to github of https://github.com/settings/keys
the Add SSH Key
Then you clone git
----------------