Monday, April 18, 2022

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

Issue

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?


Solution

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.



Answered By - whoisraibolt
Answer Checked By - Mary Flores (WPSolving Volunteer)