Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote SSH: Kill current VS Code server doesn't work #10114

Open
ShuguangSun opened this issue Jul 30, 2024 · 2 comments
Open

Remote SSH: Kill current VS Code server doesn't work #10114

ShuguangSun opened this issue Jul 30, 2024 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH

Comments

@ShuguangSun
Copy link

Command Remote SSH: Kill current VS Code server doesn't work using the most updated code server. As it is expected to be installed in the folder .vscode-server\cli instead of .vscode-server\bin. So it raise error message and log like

Get-Process node | Where-Object Path -match ".*\\.vscode-server.*\\bin\\.*" | ForEach-Object {Stop-Process -Id $_.Id}
> PS C:\Users\xxxx> Remove-Item -Force -Recurse $env:USERPROFILE\.vscode-server\bin
> +             Remove-Item -Force -Recurse $env:USERPROFILE\.vscode-serv ...
> +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : ObjectNotFound: (C:\Users\xxx\.vscode-server\bin:String) [Remove-Item], ItemNotFoun 
>    dException
>     + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
  • VSCode Version: 1.91.1
  • Local OS Version: Windows 11
  • Remote OS Version: Windows 2019
  • Remote Extension/Connection Type: Server (SSH)
@vs-code-engineering vs-code-engineering bot added the ssh Issue in vscode-remote SSH label Jul 30, 2024
@roblourens roblourens added the bug Issue identified by VS Code Team member as probable bug label Aug 1, 2024
@m-mit
Copy link

m-mit commented Nov 20, 2024

Maybe related with #10403

Disabling remote.SSH.useLocalServer works for me on Windows host.
EDIT: Disabling remote.SSH.useExecServer works for me.

@ShuguangSun
Copy link
Author

Yes. It works for me by disabling remote.SSH.useExecServer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

3 participants