SSH公钥(SSH Key)生成方法

Windows 用户建议使用 Windows PowerShell 或者 Git Bash,在 命令提示符 下无 catls 命令

  • 1、通过命令 ssh-keygen 生成 SSH Keyssh-keygen -t ed25519 -C "Gitee SSH Key"

    • -t :key类型
    • -C :注释
    1. 中间通过按三次回车键确定(可以不需要输入什么)
    1. 查看生成的 SSH 公钥和私钥:ls ~/.ssh/
    1. 显示输出: id_ed25519 id_ed25519.pub
    • id_ed25519私钥文件
    • id_ed25519.pub公钥文件
    1. 读取公钥文件:cat ~/.ssh/id_ed25519.pub
    1. ssh-ed25519 AAAA***5B Gitee SSH Key,复制该内容就行。

相关推荐
少妇的美梦29 分钟前
logstash教程
运维
chen9451 小时前
k8s集群部署vector日志采集器
运维
chen9451 小时前
aws ec2部署harbor,使用s3存储
运维
東雪蓮☆6 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_264220896 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++6 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy7 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡
Yyyy4827 小时前
Nginx负载均衡集群实验步骤
运维·nginx·负载均衡
獭.獭.8 小时前
Linux -- 信号【上】
linux·运维·服务器
hashiqimiya8 小时前
centos配置环境变量jdk
linux·运维·centos