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

相关推荐
yinshuilan4 分钟前
Mac提示无法打开应用程序DBeaver
macos
krack716x6 分钟前
服务器信息收集
运维·服务器
Brandon汐10 分钟前
Linux文件传输:让数据飞起来!
linux·运维·网络
AI服务老曹16 分钟前
包含网络、平台、数据及安全四大体系的智慧快消开源了
运维·人工智能·安全·开源·音视频
开发小能手-roy1 小时前
linux Ubuntu 用户权限设置
linux·运维·ubuntu
小白探索世界欧耶!~1 小时前
【踩坑】GitHub Actions 运行的 Linux 环境中,文件名是大小写敏感的
linux·运维·服务器·前端·vue.js·笔记·github
lyingcloud1 小时前
debian系统中文输入法失效解决
linux·运维·debian
whoarethenext2 小时前
基于libevent写一个服务器(附带源码)
linux·运维·服务器·c++·后端
饥饿仙人2 小时前
docker+frp 打通开发内网环境到公网进行测试 o( ̄▽ ̄)d
运维
中云时代-防御可测试-小余2 小时前
阿里云CDN应对DDoS攻击策略
运维·安全·阿里云·云计算·负载均衡·ddos