Mac生成ssh秘钥方法

630 阅读1分钟

1. 查看电脑存在id_rsa和id_rsa.pub。

终端输入命令:ls .ssh

2.如果不存在生成id_rsa和id_rsa.pub

终端输入命令:ssh-keygen -t rsa -C 'youremail@xx.xxx' 

3.复制id_rsa.pub

终端输入命令:pbcopy < ~/.ssh/id_rsa.pub

**可以参考git.ssh生成方法写的很详细 **: docs.github.com/cn/free-pro…