关于解决Linux下载软件时报错"Failed to connect to github.com port 443"的问题




        近期由于需要进行NDN仿真,需要在linux下安装ndnsim进行仿真,根据ndnsim官网的说明文档,我按官网步骤一步步下载,先用sudo apt-get install git  安装git后,
再执行如下命令,使用git clone 下载代码:
git clone https://github.com/named-data-ndnSIM/ns-3-dev.git ns-3
出现报错:

github unable to access 'https://github.com/named-data-ndnSIM/ns-3-dev.git' : Failed to connect to github.com port 443


将下载命令改为如下格式就可以正确执行了:
git clone https://username:passwords@github.com/named-data-ndnSIM/ns-3-dev.git ns-3
username与passwords为linux用户名与密码。

你可能感兴趣的:(Linux)