首页 > 系统服务 > 详细

ubuntu配置github

时间:2020-04-05 10:38:23      阅读:160      评论:0      收藏:0      [点我收藏+]

本来也是空的,来留档

https://blog.csdn.net/qq_19004627/article/details/79639135这里是教程的说,感谢大佬。

jane@janee:~$ git config --global user.name "xtwentian3"
jane@janee:~$ git config --global user.email "tianerhainv@163.com"
jane@janee:~$ git config --list
user.name=xtwentian3
user.email=tianerhainv@163.com
jane@janee:~$ ssh-keygen -C "tianerhainv@163.com" -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jane/.ssh/id_rsa): /home/jane/programe/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/home/jane/programe/.ssh/id_rsa" failed: No such file or directory
jane@janee:~$ ssh-keygen -C "tianerhainv@163.com" -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jane/.ssh/id_rsa): /home/jane/programe/.ssh/id_rsa
/home/jane/programe/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/home/jane/programe/.ssh/id_rsa" failed: passphrase is too short (minimum five characters)
jane@janee:~$ ssh-keygen -C "tianerhainv@163.com" -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jane/.ssh/id_rsa): /home/jane/programe/.ssh/id_rsa
/home/jane/programe/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "/home/jane/programe/.ssh/id_rsa" failed: Is a directory
jane@janee:~$ ssh-keygen -C "tianerhainv@163.com" -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jane/.ssh/id_rsa): /home/jane/programe/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/jane/programe/.ssh/id_rsa.
Your public key has been saved in /home/jane/programe/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:UkrBKoNdnZBamKFY1i04hOSSnyAoXl/4v99RmaySWCU tianerhainv@163.com
The key‘s randomart image is:
+---[RSA 2048]----+
|.+=*.*.. |
|=== * *. |
|X+ * +... E . |
|*o*.o.oo o . o|
| .oo .o.S . = |
| .. o . o |
| o o o |
| . o . |
| ... . |
+----[SHA256]-----+
jane@janee:~$ cd ~/programe/.ssh
jane@janee:~/programe/.ssh$ ls
id_rsa id_rsa.pub
jane@janee:~/programe/.ssh$ ssh-add ~/programe/.ssh/id_dsa
/home/jane/programe/.ssh/id_dsa: No such file or directory
jane@janee:~/programe/.ssh$ ssh-add ~/programe/.ssh/id_rsa
Identity added: /home/jane/programe/.ssh/id_rsa (/home/jane/programe/.ssh/id_rsa)
jane@janee:~/programe/.ssh$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCYz09Mdj4VpZG+CnQrNvK/eF8EoQw4g229e8WuBywYXh9VuHNFjLr9Pb2a/pUWU96zqyNOBNaCNsd7f9/R7LdWv8iK4yEREcmG/G5051p12Bd4HUtm5HUultZsxNm8aThJnwHXFho3EDsGCPfIFmqPG4VHrSasFbJjqIDlDNMmIvEbrPmcKtV7Fq8JfFc1VCQ44GVhf8d0imKYumq5QTJEkPcsc4aM5ma1NCvFv4VMZnsx2I1XzX8FOskAa/D1lX2NYXY5IJxzO0jLvIAKSF/0z/8/6wswBMrzQY4ZQR7GN6hJXX/6hkJ/5d5PHI1XRd5eWzVNr2J7Gb1HWXl1guVx tianerhainv@163.com
jane@janee:~/programe/.ssh$ ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address ‘13.250.177.223‘ to the list of known hosts.
Hi xtwentian3! You‘ve successfully authenticated, but GitHub does not provide shell access.

技术分享图片

技术分享图片

ubuntu配置github

原文:https://www.cnblogs.com/Leeny/p/12635836.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!