ubuntu使用curl加载https报ssh认证失败及dns配置

curl加载https报ssh认证失败

原因,系统时间与远程服务时间不一致 解决方案:http://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c 原文如下 Check your system clock

$ date

If it's not correct the certificate check will fail.

To correct the system clock

$ apt-get install ntp

The clock should synchronize itself.

Finally enter the clone command again.

dns配置

修改/etc/resolv.conf,加入

nameserver 114.114.114.114
nameserver 8.8.8.8

注:重启后会被重置

评论

暂无评论