Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

10.4.0.0p1-Preview: SSH sessions no longer get the user's PATH (HKCU\Environment), only the machine PATH

未关闭
#2,474 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

@tgauth 已经在做这个了。

开始于 2026年10月22日。

  • #888 来自 @tgauth —— 未关闭

评估

难度
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
  1. Give a user one or more entries in their user PATH ([Environment]::GetEnvironmentVariable("Path","User")).
  2. Install 10.4.0.0p1-Preview and SSH in as that user.
  3. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PowerShell/Win32-OpenSSH 的其他 Issue

查看 PowerShell/Win32-OpenSSH 的全部 Issue

相似的 Issue

更多 Networking Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。