gitee配置ssh


创建ssh-key:

itaken@itaken-home:~$ ssh-keygen -t rsa -C 'regelhh@gmail.com'
Generating public/private rsa key pair.
Enter file in which to save the key (/home/itaken/.ssh/id_rsa): /home/itaken/.ssh/gitee_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/itaken/.ssh/gitee_rsa.
Your public key has been saved in /home/itaken/.ssh/gitee_rsa.pub.
The key fingerprint is:
SHA256:sDVno9gGW7qwqV0ADkO40PXexeKkKWkM7T9xwvZb/Zc regelhh@gmail.com
The key's randomart image is:
+---[RSA 2048]----+
|    .            |
| + . .           |
|+ * . * =        |
|.* . & @ .       |
|. X B O S        |
| . B = o   .     |
|  o B.    . .   .|
| o . o=  .   . F.|
|. .  -..o.    .. |
+----[SHA256]-----+

查看ssh-key的公钥:

itaken@itaken-home:~$ ll ./.ssh/
总用量 32
-rw-r--r-- 1 itaken itaken  372 5月  15  2020 config
-rw------- 1 itaken itaken 1823 3月   8 10:02 gitee_rsa
-rw-r--r-- 1 itaken itaken  399 3月   8 10:02 gitee_rsa.pub
-rw-r--r-- 1 itaken itaken 3540 8月  31  2020 known_hosts
itaken@itaken-home:~$ cat ./.ssh/gitee_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3RlCpyQlaL0oHhCMiWBdO6mJByv5KZpd/ioa28rqi6HjmsRAFNRjVX...GQ+eAMKAWJHFge1iNjYrkUIbTqpi...E7jLwLZmDsarShdeRrsVWRXT2N1hw/H7ardjSlyYDmyIXmO8uKj...NowOiVbmNTjNFAFyV7qyNFAFufxv...++DzllhmD37BnNrCE1p08IhNDGlMWj regelhh@gmail.com

gitee_rsa.pub中的内容,粘贴到SSH keyskey中.

gitee


参考文档


Author: Itaken
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Itaken !
  TOC目录