1.打开终端输入命令 生成sshkey :
ssh-keygen -t rsa -C "your_email@example.com"
2.使用命令将生成的ssh拷贝到剪切板上:
pbcopy < ~/.ssh/id_rsa.pub
备注(ps):
mac中查看.ssh文件命令:
open ~/.ssh
1.打开终端输入命令 生成sshkey :
ssh-keygen -t rsa -C "your_email@example.com"
2.使用命令将生成的ssh拷贝到剪切板上:
pbcopy < ~/.ssh/id_rsa.pub
备注(ps):
mac中查看.ssh文件命令:
open ~/.ssh