#生成包含mail的sshkey
ssh-keygen -t rsa -C "your_email@example.com"
#文件存放路径和文件名
Enter file in which to save the key (/Users/teddy/.ssh/id_rsa): /Users/teddy/.ssh/id_rsa_proj1
#不设置密码
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
密匙文件存放在C:/Users/teddy/.ssh/
下
来源:oschina
链接:https://my.oschina.net/teddyIH/blog/3216599