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

相关推荐
AI逐月33 分钟前
tmux 常用命令总结:从入门到稳定使用的一篇实战博客
linux·服务器·ssh·php
小白跃升坊1 小时前
基于1Panel的AI运维
linux·运维·人工智能·ai大模型·教学·ai agent
杨江1 小时前
seafile docker安装说明
运维
好好沉淀1 小时前
Docker开发笔记(详解)
运维·docker·容器
zmjjdank1ng2 小时前
Linux 输出重定向
linux·运维
路由侠内网穿透.2 小时前
本地部署智能家居集成解决方案 ESPHome 并实现外部访问( Linux 版本)
linux·运维·服务器·网络协议·智能家居
树℡独2 小时前
ns-3仿真之应用层(三)
运维·服务器·ns3
川川菜鸟2 小时前
Claude Code 安装与配置完整指南(Mac)
macos
VekiSon2 小时前
Linux内核驱动——基础概念与开发环境搭建
linux·运维·服务器·c语言·arm开发
WarmSword3 小时前
mac上用cursor/vscode调试root权限进程
c++·ide·vscode·macos·mac