|NO.Z.00009|——————————|CloudNative|——|CI/CD&GitHub操作.V01|——|GitHub远程仓库|

一、GitHub远程仓库说明
### --- 创建GitHub账户
### --- GitHub创建仓库

~~~     github.com官网注册github账户
二、配置GitHub.ssh秘钥
### --- 本地客户端生成ssh公钥
~~~     生成公钥
~~~     邮箱要与github上注册的相同

[root@server11 ~]# ssh-keygen -t rsa -C 'meteor@163.com'    
### --- 查看生成的公钥文件
 
[root@server11 ~]# cat .ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVThfq4brrlsPGtAknVB0TLPx+7Dd3qlxTbSIrUOsGC5Y8JuNqVTlIntZB4oNj8cSQrWvec9CKm0a8o7WwaJIiqpxurz+YpQHP2KbapftKIxsX4hPf/z+p0El1U6arQa35/xmNsq+cJLH/bDdRG+EMDhuCBmjVZOlLj/hEdeIT6s56AnnCkaWoF+sq58KCF7Tk54jRbs/YiyE4SN7FuA70r+07sA/uj0+lmuk4E190KtQUELhjX/E9stivlqiRhxnKvVUqXDywsjfM8Rtvbi4Fg9R8Wt9fpd4QwnWksYUoR5qZJFYXO4hSZrUnSMruPK14xXjDJcFDcP2eHIzKgLD1 meteor@163.com
### --- 将公钥文件添加到GitHub上

~~~     复制以上的公钥,在 github 中添加ssh key
三、验证Git客户端.ssh连接
### --- GitHub客户端安装Git客户端

[root@server11 ~]# yum install git
........
### --- 通过ssh连接GitHub

[root@server11 ~]# ssh -T git@yanqivip.comhub.com
The authenticity of host 'github.com (13.250.177.223)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
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.
Hi meteor! You've successfully authenticated, but GitHub does not provide shell access.

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-03-27 15:49  yanqi_vip  阅读(42)  评论(0)    收藏  举报

导航