mac 生成 本地.ssh

输入下面命令行

bash 复制代码
ssh-keygen 

默认回车得到下面的

bash 复制代码
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:。。。。。。。。。。。。。。。。。//此处省略

然后输入下面命令行

bash 复制代码
cat ~/.ssh/id_rsa.pub

得到生成的ssh-ras

然后复制到github或者其他仓库管理平台

相关推荐
SoraLuna17 分钟前
「Mac畅玩AIGC与多模态41」开发篇36 - 用 ArkTS 构建聚合搜索前端页面
前端·macos·aigc
xbd_zc36 分钟前
【Linux Nano Vim快捷键大全】
linux·运维·vim
Mapleay1 小时前
ubuntu 更新华为源
运维·服务器·ubuntu
有梦想的攻城狮1 小时前
mac本地docker镜像上传指定虚拟机
macos·docker·eureka
shane-u1 小时前
Dockerfile实战:从零构建自定义CentOS镜像
linux·运维·centos
孙克旭_2 小时前
day016-系统负载压力测试-磁盘管理
linux·运维·压力测试
qq_454175792 小时前
gcc/g++常用参数
linux·运维·服务器
sun0077003 小时前
windows 10 做服务器 其他电脑无法访问,怎么回事?
运维·服务器·网络
wb1893 小时前
Linux远程连接服务
linux·运维·服务器·笔记
深井冰水3 小时前
Pycharm的终端执行allure命令出现command not found
macos·pycharm·接口自动化