我在使用Windows平台的私有网络中,通过VPN连接。我正在尝试使用git克隆一个项目。
git clone ssh://git@domain-name:somestring/str-somestring.git
But I getting ssh: Could not resolve hostname domain-name: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我在本地生成了ssh
,并将其添加到了我的本地仓库中。有人能帮我解决一下吗?
我确定我对这个项目拥有所有访问权限。
更新
ping google.com
在VPN外是可以工作的,但在VPN内无法工作。
ssh-key
添加到了你的主机名设置中? - Shravan40ssh-agent
中。 - Shravan40