How to fix "failed to install VS code server" error

3.3k Views Asked by At

I am trying to connect with remote server using SSH connection from visual studio code. Earlier it was working but now it gives me error:

Could not establish connection: Failed to install the VS Code server

How can this be fixed?

I was trying to connect the remote server over SSH connection, but somehow, I am not able to connect, and it is giving me error failed to install VS code server.

2

There are 2 best solutions below

1
On BEST ANSWER

Download the version which you want by using below command:

wget https://update.code.visualstudio.com/commit:b3e4e68a0bc097f0ae7907b217c1119af9e03435/server-linux-x64/stable

Once it is downloaded, untar whatever was downloaded.

Move all the files and folder inside the folder which you untar into below path:

/home/$user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435

You can use below command to move files and folders:

mv * /home/$user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435

Note: to check commit ID open visual studio code, goto help-> about

0
On

I wanted to add in here in my case this exact same issue I found tar wasn't installed so it wasn't properly unpacking the vscode setup.