0

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.

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Rudra
  • 1
  • 1

1 Answers1

0

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

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Rudra
  • 1
  • 1