Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Remote-SSH: The vscode server failed to start SSH

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?

like image 699
whoisraibolt Avatar asked Jun 14 '21 20:06

whoisraibolt


People also ask

How do I SSH into a VS Code server?

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.

Is VS Code remote SSH safe?

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.

How add SSH key to VS Code?

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.

What happened to the remote/remote SSH extension in VSCode?

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.

Can I use VS Code on a remote SSH server?

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.

How to fix remote-SSH not working in VS Code?

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.

How do I use SSH in Visual Studio Code?

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.


2 Answers

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...

enter image description here

Select the host name:

enter image description here

And after this procedure, try connecting again to the host.

That worked for me.

like image 54
whoisraibolt Avatar answered Oct 19 '22 05:10

whoisraibolt


In my case it was ssh plugin issue. I updated remote ssh plugin then it worked

like image 9
Krishan Avatar answered Oct 19 '22 06:10

Krishan