操作环境:Ubuntu 生成一对 SSH key 1 $ ssh-keygen -t rsa -C "your_email@example.com" Enter file in which to save the key (/Users/you/.ssh/id_rsa): /Users/you/.ssh/"your_ssh_name" Enter passphrase (empty for no passphrase): [Press enter] Enter same passphrase again: [Press enter] 将公钥添加到 github 账户 打开并复制本地文件 /Users/you/.ssh/“your_ssh_name.pub” 里面的