Git SSH生成

1.首先安装Git Bash\Git GUI

2.生成密钥: ssh-keygen -t rsa -C "276434731@qq.com"

 得到2个文件: id_rsa, id_rsa.pub 

3.在github 或者oschina 添加ssh id_rsa.pub 

测试:ssh git@github.com

posted @ 2016-07-06 18:57  johnson-ycp  阅读(90)  评论(0编辑  收藏  举报