Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill VSCode remote services on Ubuntu Host [closed]

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,

  • as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) *

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.

like image 238
Shawn Guo Avatar asked Jul 04 '19 18:07

Shawn Guo


People also ask

How do I turn off remote VS Code?

To close the connection when you finish editing files on the remote host, choose File > Close Remote Connection to disconnect from the host. The default configuration does not include a keyboard shortcut for this command. You can also simply exit VS Code to close the remote connection.

How do you remote SSH kill VS Code server on host?

Switch Remote - SSH into socket mode by enabling Remote. SSH: Remote Server Listen On Socket in your local VS Code User settings. If you've already connected to the SSH Host, select Remote-SSH: Kill VS Code Server on Host... from the Command Palette (F1) so the setting takes effect.

How do I delete a VS Code server?

To do this, just run rm -r ~/. vscode-server on any of the linux. cs servers. (Since your home directory is shared, you only need to do this once.)

How do I kill a process in VS Code?

4 Answers. You can also right-click on the process in System Monitor and select Kill.


1 Answers

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

like image 110
Алексей Бачков Avatar answered Sep 30 '22 14:09

Алексей Бачков