在阿里雲新買了一臺服務器,用的原正常運行的系統做的鏡像文件,但在拉代碼的時候提示如下報錯:
[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文件裏即可,