ubuntu配置github

本来也是空的,来留档

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

ubuntu配置github

ubuntu配置github

上一篇:HBase Shell Get 操作常用小技巧


下一篇:linux服务器搭建svn服务器