- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務(wù)機構(gòu)許可:滇D3-20230001
- 代理域名注冊服務(wù)機構(gòu):新網(wǎng)數(shù)碼
Git Pull&Git Push配置SSH代理
藍隊云小課堂:
當(dāng)git pull或push時經(jīng)常會遇到Could not read from remote repository的報錯,尤其是在啟用Clash等代理軟件后
# git push
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
此時我們可以通過配置SSH代理來保障網(wǎng)絡(luò)通暢,添加~/.ssh/config文件,配置如下內(nèi)容
# cat ~/.ssh/config
Host github.com
User git
Hostname github.com
Port 22
ProxyCommand nc -v -x localhost:7890 %h %p
ProxyCommand依賴nc,服務(wù)器上需要提前安裝nc
# apt-get install ncat
更多小知識,可聯(lián)系藍隊云一起探討。
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP