Search code examples
visual-studio-codevscode-remote

server.sh not found when establishing vscode remote ssh connection


I get the following error when connecting to a remote host to setup remote SSH connection.

Server did not start successfully. Full server log >>>

[09:58:46.599] > bash: line 212: /u/kasula/.vscode-server/bin/036a6b1d3ac84e5ca96a17a44e63a87971f8fcc8/server.sh: No such file or directory <<< End of server log

Not sure how to proceed, and no more information in the log file or terminal. Please help.


Solution

  • I had the same issue too.
    My local OS is macOS 10.15.4, and the remote OS is CentOS 8.

    It turns out that CentOS 8 doesn't installed tar as default. So I just install it (sudo yum install tar), and then connect to remote again in VSCode and it works.