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从入门到精通】第31篇:防火墙漫谈——iptables与firewalld防护指南
linux·运维·php
下一页盛夏花开18 分钟前
ubuntu 20中安装QT以后出现红色空心断点
linux·运维·ubuntu
sxgzzn3 小时前
光伏数智化综合平台:让光伏电站运维更智能、更高效
运维
乌托邦的逃亡者4 小时前
Linux中如何检测IP冲突
linux·运维·tcp/ip
一曦的后花园4 小时前
linux搭建promethes并对接node-exporter指标
linux·运维·服务器
乌托邦的逃亡者5 小时前
CentOS/Openeuler主机中,为一个网卡设置多个IP地址
linux·运维·网络·tcp/ip·centos
拾贰_C6 小时前
【OpenClaw | openai | QQ】 配置QQ qot机器人
运维·人工智能·ubuntu·面试·prompt
桌面运维家6 小时前
服务器进程异常监控:快速定位与排障实战指南
运维·服务器
风曦Kisaki6 小时前
# Linux Shell 编程入门 Day02:条件测试、if 判断、循环与随机数
linux·运维·chrome