首页 > 解决方案 > 无法访问“https://github.com/GladysProject/gladys/”:无法连接到 github.com 端口 443:没有路由到主机

问题描述

当我运行时:

sudo git clone https://github.com/GladysProject/gladys gladys

出现错误:

fatal: unable to access 'https://github.com/GladysProject/gladys/': Failed to connect to github.com port 443: no route to host

我在树莓派 3B 上使用最新版本的 raspbian,我刚刚获得了 SAMBA 和传输。

标签: gitraspberry-piraspbianhostsamba

解决方案


首先,检查你的连接设置和所有的废话,确保你已经有了。

如果错误仍然存​​在,请关闭 SSL 验证

git config http.sslVerify false

但如果没有 repo,运行这个来改变全局设置

git config --global http.sslVerify false

How do I set GIT_SSL_NO_VERIFY for specific repos?的副本?


推荐阅读