Support SSH connections over direct-tcpip channels without a local TCP listener
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- networking, security
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 4.4k
- Fork
- 987
- Merge medio
- 2g 6h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sshnet/SSH.NET
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
I maintainer di solito rispondono entro 3 giorni
-
Proposal: built-in tracing and metrics via ActivitySource/MeterForse già presa @YoussefElshemi l’ha presa 10 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
sshnet/SSH.NET#1854 · 4 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
sshnet/SSH.NET#1853 · 4 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 69/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
sshnet/SSH.NET#1843 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di sshnet/SSH.NET
Issue simili
-
needs-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
Azure/azure-sdk-for-net#64658 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
dotnet/aspnetcore#70370 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
NethermindEth/nethermind#15684 ·
I maintainer di solito rispondono entro 1 giorno
-
area/ai-assistant squad/flyt
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Altinn/altinn-studio#21798 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
SubtitleEdit/subtitleedit#16699 ·
I maintainer di solito rispondono entro 1 giorno