git生成ssh key 生成新的ssh key 命令行输入 ssh-keygen -t rsa -C "your_email@example.com" 默认,一直回车 2. 获取生成的ssh key 命令行输入 cat ~/.ssh/id_rsa.pub