[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hang
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 74/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- go
- 領域
- cli, networking
研究方向
先檢查用來建置 Step 的 Go 版本,並與 Go issue #80979 中提及的修正進行比較;報告指出 Step 0.31.0 內含 Go 1.27.1,升級至 1.27.2 應可解決停滯問題。在 Windows 11 上使用 ProxyJump 和 Match exec "step ssh check-host %h" 重現問題,接著確認套用修正後 SSH 可以連線。
由索引模型根據 Issue 內容生成。
描述
Steps to Reproduce
SSH hangs when the connection involves both ProxyJump and step ssh check-host.
Using an otherwise working ProxyJump configuration:
- Without any Step invocation during SSH startup, the connection succeeds.
- Adding only the following block causes it to fail:
Match exec "step ssh check-host %h"
ServerAliveInterval 60
The failing nested SSH connection logs:
debug3: write ERROR from cb(2):87
debug2: channel 0: write failed
This reproduces without using step ssh proxycommand, isolating the trigger to executing check-host.
We suspect Go #80979. Step 0.31.0 embeds Go 1.27.1, before the relevant fix. We have not yet verified a rebuilt Step binary containing that fix. The issue described in that patch involves Windows pipes, which explains why both ProxyJump and step ssh check-host are required for the issue
Some other notes:
- Direct connections appear fine (i.e.,
ProxyJumpis required to reproduce) - We know that at least Step
0.31.0is affected - Downgrading to Step
0.28.7resolves the issue (with the same config) - We haven't identified the first affected version, but the Go issue notes a regression between Go
1.24.6and1.26.0
Full example:
Host jumphost
HostName jumphost.example.com
Host targethost
HostName targethost.example.com
ProxyJump jumphost
Match exec "step ssh check-host %h"
ServerAliveInterval 60
Summary: Bump to Go 1.27.2 should solve this issue.
Your Environment
Windows 11
Step 0.31.0
Expected Behavior
SSH works
Actual Behavior
SSH hangs
Additional Context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
- 主要語言
- Go
- 星號
- 4.3k
- 分支
- 320
- 平均合併
- 2 天 3 小時
- 30 天內合併 PR
- 11
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
smallstep/cli 的其他 Issue
-
enhancement needs triage
難度 4/5 3-5 天 新手友好度 32/100
維護者通常 1 天內回覆
-
enhancement needs triage
難度 3/5 1-2 天 新手友好度 57/100
smallstep/cli#1713 · 1 個 reaction ·
維護者通常 1 天內回覆
-
enhancement needs triage
難度 4/5 3-5 天 新手友好度 35/100
smallstep/cli#1710 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline edits可能已有人在做 @vulragrag-star 於 56 天前認領。 未關閉bug needs triage
難度 4/5 3-5 天 新手友好度 20/100
smallstep/cli#1705 · 1 個 reaction ·
維護者通常 1 天內回覆
-
bug needs triage
難度 3/5 1-2 天 新手友好度 63/100
維護者通常 1 天內回覆
相似的 Issue
-
Case detail: main-column section headers are hard to distinguish from body text可能已有人在做 @yubessy 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
ubie-oss/hecatoncheires#347 ·
維護者通常 1 天內回覆
-
[OperatorHub] Add OLM installation method to the documentation #1193可能已有人在做 @NiccoloFei 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
cloudnative-pg/plugin-barman-cloud#1233 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
維護者通常 2 天內回覆
-
build: make check-linter version tests deterministic可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆