1.生成sshkey
windows下打開(kāi)git bash,linux下進(jìn)入控制臺(tái)拭嫁,輸入
ssh-keygen -t rsa -C 'xxx@xxx.com'
之后一直點(diǎn)擊回車(chē)
2.找到sshkey
進(jìn)入/.ssh/id_rsa.pub可免,表示用戶(hù)路徑。
3.添加到github做粤,gitlab中
點(diǎn)擊找setting下SSH Keys浇借,選擇添加ssh keys,將上一步找到的id_rsa.pub中的內(nèi)容粘貼進(jìn)去怕品。