I am trying to Push some codes into GitHub's Repo, but after following PyCharm's Documentation to set the Remotes ,Setting Directory to Repo, and setting the ssh executable to "Built-In" (on Version Control Settings), I got the following error:
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.
the weird thing is: the repo actually exists and the link to connect is in SSH form: "git@github.com:user/repo.git"
It's important to note that I'm under a corporate proxy, but all proxy settings are properly configured (since I can install packages and connect with external APIs). Even the
'git config --global http.proxy <username>:<password>@proxy:port'
and
'git config --global https.proxy <username>:<password>@proxy:port'
where properly configured in the command line.
Do you have an idea how to figure that out?
First, SSH would not need to proxy to be set: said proxy would be for HTTPS connections.
Second, double-check in command-line that ssh -Tv git@github.com
does work (see "Testing your SSH connection ": so you see a welcome message?).
Any mission I have done with corporate client has always involved SSH being blocked by the client proxy.
The OP Petter Mendes indicates:
I updated Windows Credentialswith Git's token and now it's working....
That means:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.