3行代码搞定git的ssh(mac)
2017-02-21 本文已影响0人
2远
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
看到
Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [直接回车]
看到
Enter passphrase (empty for no passphrase):[随便输入一个密码,并记住(重要,因为要再输入一次)]
看到
Enter same passphrase again::[再次输入密码]
ssh-add ~/.ssh/id_rsa
pbcopy < ~/.ssh/id_rsa.pub
5.找到下图的地方,点击去,看到ssh添加的地方,黏贴进去
Paste_Image.png参考链接:git官方指导