github配置和使用
通过手册指导生产ssh key或取已有的ssh key

root@iZwz93telmwbh624e5zetqZ:~# ls -al ~/.ssh
total
drwx------ root root Jun : .
drwx------ root root Oct : ..
-rw------- root root Aug : authorized_keys root@iZwz93telmwbh624e5zetqZ:~# ssh-keygen -t rsa -b -C "249757247@qq.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): #这里输入的是pull push密码
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:sbLxozqlCHZcdyMqvwl2uEJffZ4q3xuDbKgAjaKxlAo @qq.com
The key's randomart image is:
+---[RSA ]----+
| |
| |
| . |
| o. . o = |
|Eoo . * S . |
|O= +.o+*.. |
|*oo=+=.+=o. |
| .+.Boo..+o |
| .o.==o.o. |
+----[SHA256]-----+
root@iZwz93telmwbh624e5zetqZ:~# ll /root/.ssh/
total
drwx------ root root Oct : ./
drwx------ root root Oct : ../
-rw------- root root Aug : authorized_keys
-rw------- root root Oct : id_rsa
-rw-r--r-- root root Oct : id_rsa.pub
root@iZwz93telmwbh624e5zetqZ:~# cat /root/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDEmUXTtV7IjNwAe7uOrDrhw+YCUMkO581+JjKG+5Sd6EPzHk0a+218aqP313PUG6yzy77ApPmK6unSgDX3+dN6FtIvJfLBbpGGS+2yuWj8XiyOI9neqU3irc9Haqy6P2K18/8GoSrLmpyfbVLuBEV9O4U62NtpM/YJAoQ00Pj7akJTkuQ1rLJ/9UVf6DGpEeyxwS+BKW0QRgnoCwDBwjcU0xQMSysEtWpYLtw36KqDBQDIdBYRqaqiYCm8U2DeaptkMtlsU2M92mPEE/GOzFlWttXfHhBCktfJRlyFysvFrEOUrZ9PLICFX4bW/eBEuGakGB3iqOwpRvvOoWSv7uaL0sc6x96XfTH3ks5LAJ6VKIvSjBw9BWlky+LGtammupqVKZJVV1WCJu5kp9B2FFUl1BdjtcUXEo6salfhmkXPPgAQF3OfqdrDN6KszijtNom0TVJCwTgtR/iW3etCNX25LRwV/zpfS2yrsAupqZf7fPRoxfRDjSynRaIK778+gLqhkRrWktw6nmxifZoeA7MjQ9pSBFkyqGY5pI4BQ3woRvjUp/BxyXIEGJNQeRrVx/pV+pCuDjwA0e4IXD0EhMQNLNp6Jeihl5cw+e/gUg0cPGf18BETZB52vZhzkdf7rVec/Fc8VLO4b5b/oVxcB2rI54N6hx89zfp5hjjKlzuDRw== 249757247@qq.com
root@iZwz93telmwbh624e5zetqZ:~#

root@iZwz93telmwbh624e5zetqZ:~# ssh -T git@github.com
The authenticity of host 'github.com (13.250.177.223)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,13.250.177.223' (RSA) to the list of known hosts.
Enter passphrase for key '/root/.ssh/id_rsa':
Hi hnhycnlc888! You've successfully authenticated, but GitHub does not provide shell access.
root@iZwz93telmwbh624e5zetqZ:~# pwd
/root
root@iZwz93telmwbh624e5zetqZ:~# ls
download dump.rdb php_extension telpo
root@iZwz93telmwbh624e5zetqZ:~# git clone https://github.com/hnhycnlc888/helloworld.git
Cloning into 'helloworld'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
Checking connectivity... done.
root@iZwz93telmwbh624e5zetqZ:~# ls
download dump.rdb helloworld php_extension telpo
root@iZwz93telmwbh624e5zetqZ:~# ll helloworld/
total 16
drwxr-xr-x 3 root root 4096 Oct 25 01:46 ./
drwx------ 14 root root 4096 Oct 25 01:46 ../
drwxr-xr-x 8 root root 4096 Oct 25 01:46 .git/
-rw-r--r-- 1 root root 13 Oct 25 01:46 README.md
root@iZwz93telmwbh624e5zetqZ:~# cat helloworld/.git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/hnhycnlc888/helloworld.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
root@iZwz93telmwbh624e5zetqZ:~#
github配置和使用的更多相关文章
- window下配置SSH连接GitHub、GitHub配置ssh key
window下配置SSH连接GitHub.GitHub配置ssh key 此经验分两部分: 第一部分介绍:在windows下通过msysGit(Git for windows.Git Bash)配 ...
- 跟我学SpringCloud | 第六篇:Spring Cloud Config Github配置中心
SpringCloud系列教程 | 第六篇:Spring Cloud Config Github配置中心 Springboot: 2.1.6.RELEASE SpringCloud: Greenwic ...
- github配置及使用
安装git 对于linux系统,不同发行版本的安装方法不一样,请参考https://git-scm.com/download/linux.以ubuntu为例: sudo add-apt-reposit ...
- github配置和git学习
参考:http://www.eoeandroid.com/thread-272837-1-1.html http://blog.csdn.net/hcbbt/article/details/11651 ...
- ( 转 )Github配置
以下转自 http://liuzhijun.iteye.com/blog/1457207 有问题请联系我删除. -----———————————————————————— 如果你的代码不知道放哪里好, ...
- window下配置SSH连接GitHub、GitHub配置ssh key(转)
转自:http://jingyan.baidu.com/article/a65957f4e91ccf24e77f9b11.html 此经验分两部分: 第一部分介绍:在windows下通过msysGit ...
- ubuntu 14.0 下github 配置
一:创建Repositories 1:首先在github下创建一个帐号.这个不用多说,然后创建一个Repositories. 2:然后在ubuntu下安装git相关的东东: 1 sudo apt-ge ...
- windows中使用Git工具连接GitHub(配置篇)
Git在源码管理领域目前占很大的比重了,而且开源的项目很多都转到GitHub上面了.例如:jQuery, reddit, Sparkle, curl, Ruby on Rails, node.js, ...
- 同一台电脑使用 gitlab 和 github 配置
Git 客户端与服务器端的通信支持多种协议,ssh 最常用.ssh的公钥登录流程,用户将自己的公钥存储在远程主机,登录时,远程主机会向用户发送一条消息,用户用自己的私钥加密后,再发给服务器.远程主机用 ...
- github配置ssh密钥的方法
配置用户名和邮箱 初次安装git需要配置用户名和邮箱,否则git会提示:please tell me who you are. 你需要运行命令来配置你的用户名和邮箱: $ git config --g ...
随机推荐
- JDK+Tomcat+Eclipse环境搭建过程记录
这学期选了一门公选课叫网络开发工具与技术,主要学习用JSP语言构建网站.在配置环境的过程中遇到不少的坑,于是记录下来,希望能帮到大家. 系统环境:Win10 JDK版本:8u121, JAVA版本1. ...
- IIS中配置Office COM组件 [dufu图解系列]
解决问题: 读写office文档目前有2中方法,一种为引用微软的office com组件(下图为Microsoft Office 16.0 Object Library), 另一种为用第三方组件NPO ...
- [19/05/18-星期六] HTML_form标签
一.form标签(一) <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> & ...
- Socket服务端和客户端文件传输
很多朋友在使用socket编程时不可避免的都做过文件传输,而视频电影等需要一个字节一个字节的传输:但是客户端一般都通过-1进行终止,服务也一样:但是存在的问题是客户端永远不会把-1传递给服务端:因此经 ...
- Java初始化块及执行顺序
理解 初始化块又称为代码块.属于类中的第四大成员.本质上是一个方法,它也有方法体,但没有方法名,没有参数,没有返回,而且也不是通过对象或类名显式调用,而是通过隐式调用 是构造器的补充 语法 [修饰符] ...
- 2.golang应用目录结构和GOPATH概念
golang 语言有一个GOPATH的概念就是当前工作目录 [root@localhost golang_test]# tree . ├── bin │ └── hello ├── first.g ...
- ftp服务端
#coding=utf-8 import SocketServer import json import os class MyTcpHandler(SocketServer.BaseRequestH ...
- C#判断页面中的多个文本框输入值是否有重复的实现方法
List<string> list = new List<string>();//首先定义一个泛型数组 //这里假如说有四个文本框 string mainseat = this ...
- axios动态数据的获取
跨域:前端处理.后端处理 前端方法:代理 后端加header 第一步:全局安装axios cnpm install axios --save-dev 第二步: methods:{ ...
- window.onload和document.ready的区别
window.onload和document.ready虽然两个方法的运行效果都一样,但他们之间是存在着区别的: 一.从执行的时间 window.onload在dom文档结构加载完毕以后就可以执行,不 ...