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

原创
2016/07/03 00:21
阅读数 1K

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

注:重启后会被重置

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部