在阿里云新买了一台服务器,用的原正常运行的系统做的镜像文件,但在拉代码的时候提示如下报错:
[[email protected] ]# 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文件里即可,
原文地址:http://blog.51cto.com/cainiaibage/2336570
时间: 2024-10-02 18:07:24