Reputation: 30757
Trying my hand at setting up VS Code and connecting it to my GitHub repo.
I have followed GitHubs documentation https://help.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh and have a key.
The key has been added to my GitHub account.
I'm also following this tutorial https://code.visualstudio.com/docs/remote/ssh that asks you to connect via the Visual Studio Code Remote - SSH Extension.
After CTRL+SHIFT+P and selecting "Remote-SSH: Connect to a host" and entering [email protected] I am presented with the following error:
"Could not establish a connection to "github.com". The process tried to write to a nonexistent pipe"
I have limited experience with SSH and nothing I'm reading seems to be helping me out. I've read a few Q&A here at SO though again nothing seems to be getting me away from this one error message.
How do I connect to GitHub, via SSH so that I can leverage all git commands and push/sync to my remote repo?
I've also tried the following hosts:
Upvotes: 2
Views: 3521
Reputation: 77034
You're using an extension that isn't designed for this purpose.
The extension you're using is designed for logging to a remote server which you control and editing code on that system. For example, you'd use this extension if you were using a Mac laptop but needed to log into a remote Linux development VM that contained your source code.
Since GitHub doesn't provide a development VM, only cloning and fetching using the Git protocol over SSH, you need to use functionality designed for that. You'd want to either use the command line to clone and set up your repository or use an SSH remote (e.g., [email protected]:DarrenWainwright/VSCodePlayground.git
) with the documentation outlined here.
Upvotes: 2