[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hang
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 74/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- go
- Bereich
- cli, networking
Rechercherichtung
Prüfe zuerst die Go-Version, mit der Step gebaut wird, und vergleiche sie mit der in Go issue #80979 referenzierten Korrektur; laut Bericht enthält Step 0.31.0 Go 1.27.1, und ein Upgrade auf 1.27.2 sollte den Hänger beheben. Reproduziere das Problem unter Windows 11 mit ProxyJump und Match exec "step ssh check-host %h" und bestätige anschließend, dass SSH mit der Korrektur eine Verbindung herstellt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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).
- Vorherrschende Sprache
- Go
- Sterne
- 4.3k
- Forks
- 320
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus smallstep/cli
-
enhancement needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 32/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
smallstep/cli#1713 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
smallstep/cli#1710 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsEvtl. vergeben @vulragrag-star hat das vor 52 Tagen übernommen. Offenbug needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
smallstep/cli#1705 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 63/100
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
[Bug] Custom tool truncation leaves unused stream copies openEvtl. vergeben @OUAO-FRANK hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyOffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
crmne/hyprmoncfg#114 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
runtime: usleep sleeps nanoseconds instead of microseconds on linux/mips and linux/mips64Evtl. vergeben @BRobertson7 hat das heute übernommen. Offencompiler/runtime
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
golang/go#82913 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100