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或者其他仓库管理平台

相关推荐
菜鸟歪歪歪1 分钟前
idea中增加api中转站教程(Mac,Window通用)
macos·intellij-idea
jarreyer6 小时前
【AI Agent】大模型自动化载体
运维·自动化
xixingzhe26 小时前
SpringBoot + Nginx 免鉴权接口安全防护方案
运维·nginx·安全
翼龙云_cloud7 小时前
阿里云国际代理商:阿里云 ECS 全维度监控配置教程
运维·阿里云·云计算·监控
笑锝没心没肺7 小时前
fail2ban工具安装配置及使用
linux·运维·服务器
zt1985q9 小时前
本地部署开源智能家居集成平台 ioBroker 并实现外部访问( Windows 版本)
运维·服务器·智能家居
大卡片9 小时前
linux内核驱动开发
linux·运维·驱动开发
心心喵10 小时前
[linux] nohup和pm2的区别 进程保活
linux·运维·服务器
NGINX开源社区11 小时前
F5 NGINX Ingress Controller 5.3.0 新增功能
运维
SelectDB13 小时前
Apache Doris 在 AgentLogsBench 中领先,支撑 Agent 可观测性生产负载
运维·数据库·agent