报错信息:
$ git clone git@github.com:guokexxx/test20160421.git
Cloning into 'test20160421'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
进入目录 ~/.ssh:
guoke@guoke-PC MINGW64 ~/.ssh
$ pwd
/c/Users/guoke/.ssh
执行命令:
guoke@guoke-PC MINGW64 ~/.ssh
$ chmod 700 ~/.ssh/id_rsa
搞定!