在阿里雲新買了一臺服務器,用的原正常運行的系統作的鏡像文件,但在拉代碼的時候提示以下報錯:
[root@ap001 ]# git clone git@192.168.1.24:java/psd.git
Cloning into 'psd'...
ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.java
Please make sure you have the correct access rights
and the repository exists.git
處理方案:
想起本身在gitlab服務器有設置了IP訪問。開啓了/etc/hosts.all。把新IP添加到hosts文件裏便可,服務器