github代理

1、github代理

$ ssh-keygen -t rsa -C "xxx@qq.com"
Generating public/private rsa key pair.
Your identification has been saved in /c/Users/admin/.ssh/id_rsa_github
Your public key has been saved in /c/Users/admin/.ssh/id_rsa_github.pub

#查看代理
$ ssh-add -l
Could not open a connection to your authentication agent.
#沒有代理,創(chuàng)建代理
$ exec ssh-agent bash

$ ssh-add -l
The agent has no identities.
#本地添加私鑰
$ ssh-add ~/.ssh/id_rsa_github
Identity added: /c/Users/admin/.ssh/id_rsa_github (xxx@qq.com)

$ ssh-add -l
3072 SHA256:LUXavAY3dnEdHxxxxxxxxxxxxxxxxxxxxx xxx@qq.com (RSA)

#github上添加公鑰
#在github上配置上SSHKEY(id_rsa_github.pub)

#配置完成之后可以看到可以連通github了
$ ssh -T git@github.com
Hi xxx! You've successfully authenticated, but GitHub does not provide shell access.

有時候git連不上 看是否是用戶或者郵箱變了,如果是修改后重試
git config user.name
git config user.email

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容