在阿裡雲新買了一台伺服器,用的原正常運作的系統做的鏡像檔案,但在拉代碼的時候提示如下報錯:
[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檔案裡即可,