1.打開終端,輸入命令
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"?????
2.一路回車,直到出現(xiàn)下圖

3.查看ssh公鑰
cat ~/.ssh/id_rsa.pub
4.查看并復(fù)制ssh公鑰
pbcopy < ~/.ssh/id_rsa.pub
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"?????
cat ~/.ssh/id_rsa.pub
pbcopy < ~/.ssh/id_rsa.pub