Gerrit初始化生成密钥

复制代码
tongyu.zhu@tyzhu-NB1 MINGW64 ~/Desktop
$ mkdir ~/.ssh

tongyu.zhu@tyzhu-NB1 MINGW64 ~/Desktop
$ cd ~/.ssh

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/tongyu.zhu/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/tongyu.zhu/.ssh/id_rsa.
Your public key has been saved in /c/Users/tongyu.zhu/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:/nllQwDi7oeRT/1WzWx+11PonfuepOOMxq8uPsXgaUE tongyu.zhu@tyzhu-NB1
The key's randomart image is:
+---[RSA 3072]----+
|        . ..     |
|       . E  .    |
|        o    .   |
|       . + .  .+.|
|        S * ... B|
|       o O o o+=+|
|        = =  o+=*|
|         = ++oo *|
|        ..B=+=.++|
+----[SHA256]-----+


tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ chmod 755 .ssh
chmod: cannot access '.ssh': No such file or directory

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ chmod 755 ~/.ssh

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ chmod 644 id_rsa.pub

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ chmod 600 id_rsa

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ ls
id_rsa  id_rsa.pub

tongyu.zhu@tyzhu-NB1 MINGW64 ~/.ssh
$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCtxT1KLv2kOqFlkYYVIyT54Zw160Pj3vP6YqvTFvnGmSqrGIm/mYi2km7rx6Asks5gqe/WMX6OnRjIAZQ16+0KnIDETAZQ9othLrChGtOYUCsvib7/iZCInJmWeh9p1EqKYegBrCNuWHkuWmF6HwcEgtHKkOPLtySjMX1Esq0vQ8LbzRIf2/QTejsmtiKQw+cXtD0Sin5eU5W1OGd/GVoO38SRgs6ScrYT+2DmmKbaGouGLS6uXpWx4sSZVRIksLjJfqgJ9FRojc4HesuiI0GqISAAdEi1rW2RimeF4413AlNfnZoz6uHOTiJQBV4zOyHo0hgdg0mSz44EkkF/pLYtjRt4ojMACghRiNj0hDnnLQUR3Id37kq7ojSFuHX46O6fN2erp81Tuy5o0XKBO+gKXXfCxaEj7fHU1oNgnfRqpNUhr0BiCDet3gZYNzwRSMKS99/daUin9T/wKSxVCAhPyh+e7o9Vd2AaXeq6QeKXeqNudzpI116LdYtz7ntr7T8= tongyu.zhu@tyzhu-NB1
复制代码

 

posted @   清风oo  阅读(276)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
历史上的今天:
2020-01-20 老实人没有好报 | 王盐随笔
点击右上角即可分享
微信分享提示