我正在尝试将一些代码推送到GitHub的Repo中,但在按照PyCharm的文档设置遥控器,将目录设置为Repo,并将ssh可执行文件设置为“Built-In”(在版本控制设置上)后,我收到以下错误:
dnb_api: ssh: Could not resolve hostname github.com: Name or service not known Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
奇怪的是:repo实际存在,连接的链接是SSH形式:“[email protected]:user / repo.git”
重要的是要注意我在公司代理下,但所有代理设置都已正确配置(因为我可以安装软件包并连接外部API)。即便是
'git config --global http.proxy <username>:<password>@proxy:port'
和
'git config --global https.proxy <username>:<password>@proxy:port'
在命令行中正确配置的位置。
你知道如何解决这个问题吗?
首先,SSH不需要代理设置:所述代理将用于HTTPS连接。
第二,仔细检查ssh -Tv [email protected]
工作的命令行(参见“Testing your SSH connection”:所以你看到一条欢迎信息?)。
我对公司客户端所做的任务总是涉及SSH被客户端代理阻止。
OP Petter Mendes表示:
我使用Git的令牌更新了Windows Credentials,现在它正在工作....
这意味着: