配置 git 以ssh公钥访问github
#生成ssh config touch .ssh/config chmod 600 config
填写:
Host github.com User betachen Hostname ssh.github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa Port 443
生成公私钥:
ssh-keygen -t rsa -C "邮箱" ssh -T git@github.com
填写公钥到github