Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container start fails - " unable to connect to github.com" - Replace git:// by https:// ? #60

Open
elmar-hinz opened this issue Dec 4, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@elmar-hinz
Copy link

The "Bonus" part fails for me:

  Running command git clone --filter=blob:none --quiet git://github.com/home-assistant/home-assistant.git /tmp/pip-req-build-xptkl65j
  fatal: unable to connect to github.com:
  github.com[0: 140.82.121.3]: errno=Connection refused

Screenshot 2022-12-04 at 22 04 39

Github requires Use a password-protected SSH key. when using the git protocol. The HTTPS protocol should be less restrictive.

@elmar-hinz elmar-hinz added the bug Something isn't working label Dec 4, 2022
@ab-tools
Copy link

Just spent an hour to find this out as well.

Would strongly suggest to change this, if possible, to avoid unnecessary frustration.

@elmar-hinz
Copy link
Author

It may be, that it is intended to connect by the git protocol, so that you can directly push. In this case, it is rather an issue of documentation.

There is this entry within .devcontainer/devcontainer.json:

 "runArgs": [
    "-v",
    "${env:HOME}${env:USERPROFILE}/.ssh:/tmp/.ssh" // This is added so you can push from inside the container
  ],

@Maharshi-Pathak
Copy link

so what's the fix? create a password-protected ssh key for git?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants