$ ssh-keygen -t rsa -C "您的邮箱地址" 输入密钥备注名,回车 配置~/.ssh/config Host 密钥备注名 HostName github.com IdentityFile ~/.ssh/密钥备注名 将公钥配置至github