I'm trying to connect to a server via remote-ssh extension
for Visual Studio Code, however, I'm getting the following error:
The vscode server failed to start SSH
Everything is fine on the server-side, and the connection to this host worked fine for a while.
Any suggestions to re-access the server via remote-ssh extension
?
In VS Code, select Remote-SSH: Connect to Host... from the Command Palette (F1, Ctrl+Shift+P) and use the same user@hostname as in step 1. If VS Code cannot automatically detect the type of server you are connecting to, you will be asked to select the type manually.
VS Code Remote SSH SSH, or the secure shell protocol, lets you access a remote computer or virtual machine securely over a network connection. You can connect over SSH into another machine from Visual Studio Code and interact with files and folders anywhere on that remote filesystem.
Add SSH key to your VM# Select Use existing public key in the dropdown for SSH public key source so that you can use the public key you just generated. Take the public key and paste it into your VM setup, by copying the entire contents of the id_ed25519. pub in the SSH public key.
After VSCode update 1.37.0 the Remote/Remote SSH extension (s) cannot connect to the remote server anymore as was working before. As seen on two different machines both using windows host with vs code to connect to a VM running Ubuntu 18.04.
Consult the extension's documentation for details if you run into trouble. All other communication between the server and the VS Code client is accomplished through the authenticated, secure SSH tunnel. Can I use local tools on source code sitting on the remote SSH host? # Yes.
Remote-SSH: kill VS Code Server on Host... And after this procedure, try connecting again to the host. That worked for me. In my case it was ssh plugin issue. I updated remote ssh plugin then it worked wrong proxy setting may cause problem.
Remote Development using SSH The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine, virtual machine, or container with a running SSH server and take full advantage of VS Code's feature set. Once connected to a server, you can interact with files and folders anywhere on the remote filesystem.
After a while, I found a solution that can be useful to others.
In VS Code press:
CTRL + SHIFT + P
Type or select the option:
Remote-SSH: kill VS Code Server on Host...
Select the host name:
And after this procedure, try connecting again to the host.
That worked for me.
In my case it was ssh plugin issue. I updated remote ssh plugin then it worked
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With