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
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/Win32-OpenSSH のほかの issue
-
Area-ssh-agent Issue-Upstream Parity
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
PowerShell/Win32-OpenSSH#2458 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 10/100
PowerShell/Win32-OpenSSH#2480 · リアクション 1 件 ·
-
ssh -t exec path concatenates the command unquoted — GNU-style -c shells lose all but the first word対応中かも @caomengxuan666 が 4 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
PowerShell/Win32-OpenSSH#2478 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
PowerShell/Win32-OpenSSH#2476 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
PowerShell/Win32-OpenSSH#2472 · コメント 1 件 · リアクション 1 件 ·
PowerShell/Win32-OpenSSH の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dj-bolt/django-bolt#504 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
capture needed
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Groundskeeper-robot/groundskeeper#56 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
InukaAsith/TwinDesk#74 ·
メンテナーはふだん 2 日以内に返信