How to kill VSCode remote services on Ubuntu Host

Shawn Guo picture Shawn Guo · Jul 4, 2019 · Viewed 14.1k times · Source

I just updated VSCode Remote Insider and I can't connect to my host through VSCode anymore.

I tried to uninstall my local VSCode Insider and restart it, but it didn't help. Then, I removed the .vscode-remote-insider directory on my host. However, VSCode remote can't re-install a remote service as the old one is still running. The following is the output from my local VSCode client.

[email protected] win32 x64 SSH Resolver called for "ssh-remote", attempt 1 SSH Resolver called for host: 121 Setting up SSH remote "121" Using commit id "c089daa858f34631f5f827ff8a0313bf1e2ded6d" and quality "insider" for server Testing ssh with ssh -V ssh exited with code: 0 Got stderr from ssh: OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4 Install and start server if needed

Installing to /home/***/.vscode-server-insiders/bin/c089daa858f34631f5f827ff8a0313bf1e2ded6d...

Downloading with wget

Download complete

Found running server...

* * Reminder: You may only use this software with Visual Studio family products,

Server did not start successfully. Full server log >>> <<< End of server log cat: /home//.vscode-server-insiders/.c089daa858f34631f5f827ff8a0313bf1e2ded6d.log: No such file or directory cat: /home//.vscode-server-insiders/.c089daa858f34631f5f827ff8a0313bf1e2ded6d.log: No such file or directory cat: /home/***/.vscode-server-insiders/.c089daa858f34631f5f827ff8a0313bf1e2ded6d.log: No such file or directory

"install" terminal command done Received install output: cat: /home/***/.vscode-server-insiders/.c089daa858f34631f5f827ff8a0313bf1e2ded6d.log: No such file or directory Failed to parse remote port from server output: cat: /home/shawnguo/.vscode-server-insiders/.c089daa858f34631f5f827ff8a0313bf1e2ded6d.log: No such file or directory

The biggest trouble is that I can't kill the processes of VSCode on my host as they could alwayd produce a new process when the old one is killed.

Answer

Алексей Бачков picture Алексей Бачков · Aug 14, 2019

Try to kill vs code-remote host through the command after pressing ctrl + shift + p and enter

Remote-SSH: kill VS Code Server on Host...

Then choose your host