10.4.0.0p1-Preview: SSH sessions no longer get the user's PATH (HKCU\Environment), only the machine PATH
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 57/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- powershell
调研方向
Start by reproducing the SSH login on Windows 11 with OpenSSH 10.4.0.0p1-Preview, then inspect the session environment setup that combines machine and user PATH values. Compare the SSH session PATH with the values from [Environment]::GetEnvironmentVariable("Path","User") and the machine PATH; done means the session includes machine entries followed by user entries, as in the reported earlier version and interactive logon.
由索引模型根据 Issue 内容生成。
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
- Give a user one or more entries in their user PATH ([Environment]::GetEnvironmentVariable("Path","User")).
- Install 10.4.0.0p1-Preview and SSH in as that user.
- Compare $env:Path -split ';' against the user and machine PATH values.
Expected behavior
the session PATH contains the machine entries followed by the user entries, as on 10.0.0.0p2-Preview (and as in an interactive logon).
Actual behavior
only the machine entries are there. On the test machine, all 10 user entries were missing, so profile code that calls user-installed tools (here, oh-my-posh) fails at login.
Error details
Environment data
- Windows 11 26H2, build 26300.9711, x64
- OpenSSH installed from the MSI (OpenSSH-Win64-v10.4.0.0.msi)
- DefaultShell = C:\Program Files\PowerShell\7\pwsh.exe (7.6.7)
- Login with a public key, as a local administrator (administrators_authorized_keys)
Version
10.4.0.0p1-Preview
Visuals
No response
- 主要语言
- 没有语言数据
- 星标
- 8.3k
- 派生
- 822
- 平均合并
- 9 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/Win32-OpenSSH 的其他 Issue
-
Area-ssh-agent Issue-Upstream Parity
难度 2/5 1-3 小时 新手友好度 74/100
PowerShell/Win32-OpenSSH#2458 · 1 条评论 · 1 个 reaction ·
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 54/100
PowerShell/Win32-OpenSSH#2477 ·
-
难度 4/5 3-5 天 新手友好度 42/100
PowerShell/Win32-OpenSSH#2476 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 48/100
PowerShell/Win32-OpenSSH#2472 · 1 条评论 · 1 个 reaction ·
-
0 - Backlog Area-sshd Area-Terminal Investigate Issue-Bug
难度 4/5 3-5 天 新手友好度 48/100
PowerShell/Win32-OpenSSH#2468 · 4 条评论 · 1 个 reaction ·
查看 PowerShell/Win32-OpenSSH 的全部 Issue
相似的 Issue
-
[Bug] 附近设备权限未申请未关闭bug
难度 2/5 1-3 小时 新手友好度 67/100
bggRGjQaUbCoE/PiliPlus#3369 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
nextbsd/nextbsd-userland#434 ·
维护者通常 1 天内回复
-
Managed DNS resolver ignores tab-separated nameserver lines in /etc/resolv.conf可能已有人在做 @johnkaram02 今天认领。 未关闭needs-area-label untriaged
难度 2/5 1-3 小时 新手友好度 78/100
dotnet/extensions#7881 ·
维护者通常 1 天内回复
-
listenInRange: on Windows a port held by another process gives EACCES, not EADDRINUSE, and the whole start fails可能已有人在做 @hamza-paracha 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
anthropics/sandbox-runtime#773 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复