[TOC]
准备SSH KEY
$ ssh-keygen -t rsa -C "user@test.com"
根据提示要求指定key文件的存放位置及私钥访问密码(可以为空)
$ ssh-add full-path-of-private-key
如果添加时一直提示”Could not open connection…”, 使用git-bash执行一下$ eval $(ssh-agent)后再试
将public_key文件的内容拷贝出来,添加到github.com的授权ssh-key中
[测试][1]
[1]: http://github.com github