[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hang
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
smallstep/cli#1710 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline edits対応中かも @vulragrag-star が 51 日前に担当しました。 オープンbug needs triage
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
smallstep/cli#1705 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
Logging into a locally started instance clears its container reference, causing stop to do nothingオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
microcks/microcks-cli#620 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
teradata-labs/loom#574 ·
メンテナーはふだん 1 日以内に返信
-
cli: name the CRID when saved link limits fail after publish; soften plain-republish mint warningオープンenhancement pr-polish-followup priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
layervai/qurl-integrations#1994 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-acceptance wg/router-models-inference-runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vllm-project/semantic-router#5891 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
CycloneDX/cyclonedx-go#304 ·