[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hang

オープン 初心者向け
#1,734 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

bug needs triage
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., ProxyJump is required to reproduce)
  • We know that at least Step 0.31.0 is affected
  • Downgrading to Step 0.28.7 resolves 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.6 and 1.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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

smallstep/cli のほかの issue

smallstep/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。