输入下面命令行
ssh-keygen
默认回车得到下面的
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/{用户名}/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/{用户名}/.ssh/id_rsa
Your public key has been saved in /Users/{用户名}/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:。。。。。。。。。。。。。。。。。//此处省略
然后输入下面命令行
cat ~/.ssh/id_rsa.pub
得到生成的ssh-ras文章来源:https://www.toymoban.com/news/detail-771308.html
然后复制到github或者其他仓库管理平台文章来源地址https://www.toymoban.com/news/detail-771308.html
到了这里,关于mac 生成 本地.ssh的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!