国产精品久久久久久亚洲影视,性爱视频一区二区,亚州综合图片,欧美成人午夜免费视在线看片

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

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

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

當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


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