Support SSH connections over direct-tcpip channels without a local TCP listener
Maintainer antworten meist innerhalb von 3 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 12/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- csharp
- Bereich
- networking, security
Rechercherichtung
The request concerns the port-forwarding and channel code in the SSH.NET library, where ForwardedPortLocal currently opens a local listener. Start by reading how direct-tcpip channels are opened and how SshClient and SftpClient establish their transport. Done would be a public API that connects a target client through an existing jump-host session without a listener, with tests covering per-hop authentication and cancellation. This is design work with no comments yet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
We use SSH.NET 2026.0.0 for SSH and SFTP connections through jump hosts.
Our current implementation connects to the jump host, starts a ForwardedPortLocal on an ephemeral loopback port, and connects the target SshClient or SftpClient through that port.
The local listener remains accessible to other local processes for the lifetime of the connection. Those processes still need to authenticate to the target, but they gain network access through the application's authenticated jump-host connection.
Stopping the forwarded port also closes its active channels, so calling Stop() after the target handshake does not solve this.
Requested capability
Provide a supported public API for connecting SshClient and SftpClient through an authenticated jump-host connection without creating a local TCP listener.
Possible API directions:
- Native jump-host support.
- Exposing a direct-tcpip channel as a duplex transport, with a way to connect an SSH client over that transport.
These are suggestions; we would welcome an approach that fits SSH.NET's architecture.
Required behavior
- Preserve independent authentication and host key verification for each hop.
- Support password, private key, and externally supplied agent-backed authentication methods.
- Support cancellation during channel opening and target connection establishment.
- Keep the channel operational throughout
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 987
- Ø Merge
- 2 T. 6 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine 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 sshnet/SSH.NET
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Proposal: built-in tracing and metrics via ActivitySource/MeterEvtl. vergeben @YoussefElshemi hat das vor 10 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
sshnet/SSH.NET#1854 · 4 Kommentare · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
sshnet/SSH.NET#1853 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 69/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
sshnet/SSH.NET#1843 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
Ähnliche Issues
-
needs-triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/azure-sdk-for-net#64658 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
dotnet/aspnetcore#70370 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
NethermindEth/nethermind#15684 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/ai-assistant squad/flyt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Altinn/altinn-studio#21798 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
SubtitleEdit/subtitleedit#16699 ·
Maintainer antworten meist innerhalb von 1 Tag