github(4)——设置账户

本文详细介绍了如何在GitHub上创建账户,设置SSH Key,并成功添加公开密钥,确保顺利进行身份验证。
摘要由CSDN通过智能技术生成

1.创建账户

在github上手动设置账户

2.设置 SSH Key

$ssh-keygen -t rsa -C "你的github注册邮箱"
Generating public/private rsa key pair. 	
Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):  按回车键
Enter passphrase (empty for no passphrase):  输入密码 
Enter same passphrase again:  再次输入密码 

3.添加公开密钥

3.1查看公开密钥

$ cat ~/.ssh/id_rsa.pub ssh-rsa  公开密钥的内容  your_email@example.com

3.2设置公开密钥

在github上手动设置

3.3设置成功

$ ssh -T git@github.com 
The authenticity of host 'github.com (207.97.227.239)' can't be established. RSA key  fingerprint is  fingerprint值 . 
Are you sure you want to continue connecting (yes/no)?  输入yes 

出现如下结果即为成功。
Hi hirocastest! You’ve successfully authenticated, but GitH

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值