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)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- powershell, vscode
- Lĩnh vực
- networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 8.3k
- Fork
- 822
- Merge trung bình
- 12 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/Win32-OpenSSH
-
Area-ssh-agent Issue-Upstream Parity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
PowerShell/Win32-OpenSSH#2458 · 1 reaction ·
-
Area-Authentication Area-Logging/Diagnostics Area-sshd Investigate Issue-Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
PowerShell/Win32-OpenSSH#2466 · 1 bình luận · 1 reaction ·
-
Area-ssh-agent Issue-Enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PowerShell/Win32-OpenSSH#2462 · 1 bình luận · 1 reaction ·
-
Area-ssh-agent Investigate
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
PowerShell/Win32-OpenSSH#2460 · 1 reaction ·
-
User-defined environment variables referenced in the user PATH are not expanded in SSH sessionsĐang mởArea-sshd Investigate
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
PowerShell/Win32-OpenSSH#2456 · 1 reaction ·
Tất cả issue của PowerShell/Win32-OpenSSH
Issue tương tự
-
SR_SECURITY_DESCRIPTOR.fromString drops the SACL when no DACL is presentCó thể đã có người làm @paul7436 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PrismarineJS/mineflayer#4171 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
enhancement triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
O-X-L/ansible-opnsense#473 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apple/swift-nio-quic#126 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày