获取电脑sshkey

window操作系统
1.打开git Bash 应用程序
2. 
cat ~/.ssh/id_rsa.pub   # 查看公钥
cat ~/.ssh/id_rsa       # 查看私钥

如果你的密钥文件名不是默认的id_rsa.pubid_rsa,请将命令中的文件名替换为你的公钥和私钥文件名。

  1. Git Bash将显示你的SSH密钥内容。
posted @ 2023-12-14 14:36  龙卷风吹毁停车场  阅读(105)  评论(0)    收藏  举报