栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

GIt创建ssh公钥

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

GIt创建ssh公钥

创建ssh公钥
GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config user.name
zhen

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config user.email
191022132@qq.com

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config --global user.name "zhen"

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ git config --global user.email "191022132@QQ.com"

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ ssh-keygen -t rsa -C "191022132@QQ.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/GZ/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/GZ/.ssh/id_rsa.
Your public key has been saved in /c/Users/GZ/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:S4cYMxwUmKIc3HGUX7EALoChHsJjSriKh0zLpYs3ZZo 191022132@QQ.com
The key's randomart image is:
+---[RSA 3072]----+
|+o..oB*o ..      |
|=oo.=o ....      |
|=B.o .* ..       |
|Boo .  * .       |
|oo .  . S .      |
|*.+ o  . o       |
|+=.=    .        |
|..E              |
|.o .             |
+----[SHA256]-----+

GZ@WorkStation MINGW64 ~/Desktop/新建文件夹
$ cat ~/.ssh/id_rsa.pub
ssh-rsa 
************************//这里显示的就是ssh公钥


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/345705.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号