在git clone報錯

在阿里雲新買了一臺服務器,用的原正常運行的系統做的鏡像文件,但在拉代碼的時候提示如下報錯:
[root@ap001 ]# git clone [email protected]:java/psd.git
Cloning into 'psd'...
ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

處理方案:
想起自己在gitlab服務器有設置了IP訪問。開啓了/etc/hosts.all。把新IP添加到hosts文件裏即可,

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章