Search code examples
pythonvscode-remote

Could not establish connection to "....": The VS Code server failed to start


When I try to connect to a remote connection using ssh, I get the pop-up of "The remote host may not meet VS Code server's prerequisite for gibc and libstdc++" and soon I get the below window that connection failed.

enter image description here enter image description here

I am really not sure why this problem started with all the remote systems which I access using Vscode suddenly. I tried almost everything from the below answer and to my bad luck nothing worked. The remote host may not meet vs code server's prerequisites for glibc and libstdc++ vscod How to completely uninstall VS Code on Windows? Also, there is no way you can delete vscode completely including everything related to ssh connections and install everything fresh. I tried multiple times uninstalling vscode but the ssh related stuff is not deleted.

It would great if I can be helped.


Solution

  • It took me a way long time to resolve this issue. The solution for this problem can be found here.

    I followed the below steps and it resolved my problem:

    1. Open VS code
    2. Uninstall the Remote SSH
    3. Go to file => preferences => settings => application => update and change Mode to None.
    4. Now, uninstall the latest version 1.86.0
    5. Install the older version 1.85.1
    6. Go to file => preferences => settings => application => update and change Mode to None.
    7. Now install the Remote SSH.

    Now, the SSH connection should work.

    NOTE: How to check version: Go to Help from top menu, and then click “About”. It will tell you what version of vs code you have.