中文久久,精品伦精品一区二区三区视频,美国AV一区二区三区,国产免费小视频

意見箱
恒創(chuàng)運(yùn)營部門將仔細(xì)參閱您的意見和建議,必要時(shí)將通過預(yù)留郵箱與您保持聯(lián)絡(luò)。感謝您的支持!
意見/建議
提交建議

云服務(wù)器Git Pull/Git Push配置SSH代理

來源:佚名 編輯:佚名
2024-08-29 13:04:42

當(dāng)git pull或push時(shí)經(jīng)常會遇到Could not read from remote repository的報(bào)錯,尤其是在啟用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.

此時(shí)我們可以通過配置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


本網(wǎng)站發(fā)布或轉(zhuǎn)載的文章均來自網(wǎng)絡(luò),其原創(chuàng)性以及文中表達(dá)的觀點(diǎn)和判斷不代表本網(wǎng)站。
上一篇: SSH 服務(wù)錯 fatal: Cannot bind any address 下一篇: 探討在制定美國服務(wù)器報(bào)價(jià)時(shí),需要重點(diǎn)考慮的配置和規(guī)格選擇要點(diǎn)
相關(guān)文章
查看更多