-rw-r--r-- 1 wide288 staff 396 12 2 12:06 known_hosts
登录 github.com
右上角 account settings ---> SSH keys ---> add SSH Keys
保存下 github_key.pub 的内容
$ ssh -T [email protected]
The authenticity of host 'github.com (192.30.252.129)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:de:a9:98.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.129' (RSA) to the list of known hosts.
Permission denied (publickey).
如保解决,把 github 二个文件 改为 id_rsa
Identity added: /Users/wide288/.ssh/id_rsa (/Users/renqi/.ssh/id_rsa)
Hi wide288! You've successfully authenticated, but GitHub does not provide shell access.
成了
git config --global user.name "wide288"
git config --global user.email "wide288@***.com"
account settings ---> applications ---> generate a new token
git config --global github.user wide288
git config --global github.token 44ee07c60937aaaaaaaa164315e