Visible elevated cmd.exe window appears on server desktop when connecting via VS Code Remote-SSH (v9.5.0.0p1-Beta and v10.0.0.0p2-Preview; not in v7.9.0.0p1-Beta)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell, vscode
- Ambito
- networking
Direzione di ricerca
Reproduce the issue with the listed VS Code Remote-SSH steps, comparing affected and unaffected sshd versions and the plain ssh user@host case. Review install-sshd.ps1 and the displayed code-server-insiders.cmd launch command while checking how the server process is presented. Done means VS Code stays connected without a visible server-side cmd.exe window.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
Steps to reproduce
- Install Win32-OpenSSH v10.0.0.0p2-Preview (or v9.5.0.0p1-Beta) on a Windows 10 server via the release zip and
install-sshd.ps1. - Log in with an account in the local Administrators group, using key auth.
- From another Windows 10 machine, connect using VS Code (Insiders) Remote-SSH.
- Look at the server's desktop.
Expected behavior
No console window appears on the server's desktop.
Actual behavior
A window titled "Administrator: c:\windows\system32\cmd.exe" appears, empty except for a cursor. If I close it, VS Code loses its connection, so the window is hosting the VS Code server (code-server-insiders.cmd).
Connecting with plain ssh user@host from a terminal does not cause this; it only happens with VS Code Remote-SSH.
Versions tested (same client, same server, same config)
| sshd version | Window appears |
|---|---|
| v10.0.0.0p2-Preview | Yes |
| v9.5.0.0p1-Beta | Yes |
| v7.9.0.0p1-Beta | No |
Another Windows server running an older sshd, connected from the same client, also shows no window.
Environment
- Server: Windows 10 22H2, build 19045.6456
- Client: Windows 10 22H2, build 19045.3803, OpenSSH_for_Windows_8.1p1
- VS Code: Insiders <1.140.0-insider (system setup)> Commit: 4a6a3612a562c50f54c2bd5211f0ea42915b974e
- Remote - SSH extension
Expected behavior
No console window appears on the server's desktop when a client connects with VS Code Remote-SSH (this is what happens with v7.9.0.0p1-Beta).
Actual behavior
With v10.0.0.0p2-Preview and v9.5.0.0p1-Beta, a window titled "Administrator: c:\windows\system32\cmd.exe" appears on the server's desktop each time VS Code connects. It is empty except for a cursor. Closing it kills the VS Code server and the client reports it cannot connect, so the window is hosting code-server-insiders.cmd.
Plain `ssh user@host` from a terminal does not trigger the window. Only VS Code Remote-SSH does.
Tested with the same client, same server, same config:
- v10.0.0.0p2-Preview: window appears
- v9.5.0.0p1-Beta: window appears
- v7.9.0.0p1-Beta: no window
Another Windows server running an older sshd shows no window with the same client.
Error details
No error message. The behavior is the unexpected visible window. Process seen while connected:
cmd /Q /C C:\Users\<user>\.vscode-server-insiders\cli\servers\Insiders-<hash>\server\bin\code-server-insiders.cmd --connection-token=remotessh --start-server --enable-remote-auto-shutdown ...
Environment data
Server: Windows 10 22H2, build 19045.6456
Client: Windows 10 22H2, build 19045.3803
Client ssh: OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
Server sshd (affected): v10.0.0.0p2-Preview, v9.5.0.0p1-Beta
Server sshd (not affected): v7.9.0.0p1-Beta
Install method: release zip + install-sshd.ps1
Login account: member of local Administrators group, key auth
VS Code: Insiders <1.140.0-insider (system setup)> Commit: 4a6a3612a562c50f54c2bd5211f0ea42915b974e
Remote - SSH extension <Insiders-4a6a3612a562c50f54c2bd5211f0ea42915b974e>
Version
v7.9.0.0
Visuals
No response
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 8.3k
- Fork
- 820
- Merge medio
- 12m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/Win32-OpenSSH
-
Area-ssh-agent Issue-Upstream Parity
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
PowerShell/Win32-OpenSSH#2458 · 1 reazione ·
-
Area-Authentication Area-Logging/Diagnostics Area-sshd Investigate Issue-Bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PowerShell/Win32-OpenSSH#2466 · 1 commento · 1 reazione ·
-
Area-ssh-agent Issue-Enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
PowerShell/Win32-OpenSSH#2462 · 1 commento · 1 reazione ·
-
Area-ssh-agent Investigate
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
PowerShell/Win32-OpenSSH#2460 · 1 reazione ·
-
User-defined environment variables referenced in the user PATH are not expanded in SSH sessionsApertaArea-sshd Investigate
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
PowerShell/Win32-OpenSSH#2456 · 1 reazione ·
Tutte le issue di PowerShell/Win32-OpenSSH
Issue simili
-
withMaxHeaderSize is not applied to HTTP/2 since h2c support in 0.7.2 (431 Request Header Fields Too Large)Forse già presa @rbos-dhl l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
http4s/http4s-netty#1028 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs triage tcp
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
project-chip/connectedhomeip#74644 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
agent-habilis/agent-gossip#34 ·
I maintainer di solito rispondono entro 1 giorno
-
alignment blocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
btclib-org/btclib-node#1770 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno