-
Notifications
You must be signed in to change notification settings - Fork 300
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
Dev Containers: error "ssh: connect to host github.com port 22: Connection refused" when using git pull in vscode that is attaching to a runing docker container locally #9882
Comments
Since your local machine is Windows, please only follow the instructions for Windows on your local machine (not the container). E.g., you do not need to start The error you copied suggests that there is a network issue between the container and github.com. It doesn't hint at a problem with the local ssh-agent connection. |
My Windows local runs git fine and the local ssh-agent works (I checked it with |
What to you get when running |
I only followed the above instructions for my window, not the dev container but the result of |
If this is your SSH key for GitHub you can test the connection by running |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I already followed attaching container and sharing git ssh. But I got the above error.
Here is the result of each command I used in the attached container to get info:
ssh-agent
echo $SSH_AUTH_SOCK
ps -ef | grep ssh-agent
Here is my .giconfig in the attached container:
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No
The text was updated successfully, but these errors were encountered: