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 小时前
【Linux】重生之从零开始学习运维之Mysql
linux·运维·服务器·数据库·学习·mysql
Ray Song1 小时前
Linux DNS解析1--终端通过网关或者路由器进行域名解析的原理
linux·运维·服务器·dns解析
2025年一定要上岸2 小时前
【pytest高阶】源码的走读方法及插件hook
运维·前端·python·pytest
Zero .2 小时前
macbook安装homebrew
linux·运维·服务器
伟大的大威2 小时前
Docker 部署 Supabase并连接
运维·docker·容器
孙克旭_2 小时前
day062-监控告警方式与Grafana优雅展示
linux·运维·zabbix·grafana
那个指针是空的?3 小时前
动/静态库的原理及制作
linux·运维·服务器
Clain4 小时前
在多机运维过程中,最容易踩的几个坑
linux·运维·服务器
DARLING Zero two♡4 小时前
【Linux操作系统】简学深悟启示录:Linux环境基础开发工具使用
linux·运维·服务器