1.打开终端,输入命令
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
2.一路回车,直到出现下图
3.查看ssh公钥
cat ~/.ssh/id_rsa.pub
4.查看并复制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
本文标题:Mac配置SSH公钥
本文链接:https://www.haomeiwen.com/subject/rnzccctx.html
网友评论