1、输入命令
ssh-keygen -t rsa -C “your_email@example.com”
显示
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/k/.ssh/id_rsa):
可以不设置passphrase,直接回车,直到成功
2、查看生成的sshkey
cat ~/.ssh/id_rsa.pub
复制到github上
1、输入命令
ssh-keygen -t rsa -C “your_email@example.com”
显示
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/k/.ssh/id_rsa):
可以不设置passphrase,直接回车,直到成功
2、查看生成的sshkey
cat ~/.ssh/id_rsa.pub
复制到github上