git ssh 配置

ssh-keygen -t rsa -C '[email protected]'   一路回车,输入key的密码

执行完成后,~/.ssh下生成公钥和私钥证书:

     id_rsa

     id_rsa.pub

打开id_rsa.pub文件的内容,在git上ADD SSH Key, id_rsa.pub的全部内容都要copy上:ssh-rsa 。。。。。。。。。。[email protected] 

猜你喜欢

转载自www.cnblogs.com/jinghan/p/9507222.html