记录github 免登陆用户名密码方式

1.https 代码模式切换为ssh模式; (本博客有文章介绍)

2.~/.ssh/github_rsa.pub 内容添加到github “config“ 目录下面

3.配置~/.ssh/config   touch /root/.ssh/config  (~/.ssh/config 等同于/root/.ssh/config)

Host github.com
HostName github.com
User [email protected]
IdentityFile /root/.ssh/github_rsa

4.提示“Enter passphrase for key” (本博客有文章介绍)

 ssh-add -K xxx 解决问题(也可以重新设置sshkey重新设置得到github_rsa.pub和github_rsa)

猜你喜欢

转载自www.cnblogs.com/williamjie/p/9145794.html