Re-use SSH connection for SFTP
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 993
- Ø Merge
- 9 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Can I open a single SSH connection to run commands over, and have an SFTP session over the same connection, too? My application needs both and I don't like opening and authenticating two separate network connections to the same host for that.
I've tried to find out a bit about the inner workings of SSH but didn't get too far. I know that an SSH subsystem is just a server-side alias for a preconfigured command like "sftp-server". And I know that sftp-server speaks its own protocol to a client (albeit similar to the packet structure of SSH itself, which seems to cause performance issues due to double-encapsulation) over a "channel" (?) through the SSH connection. And I believe that there can be multiple channels in one SSH connection. That makes me wonder if there can be, say, a terminal and two SFTP sessions on a single SSH connection.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit der Überprüfung der SSH-Verbindungs- und Kanal-APIs der Bibliothek, wobei Sie die hier beschriebenen Anwendungsfälle für SFTP-Sitzungen und Terminals berücksichtigen. Ermitteln Sie, ob eine Verbindung mehrere Kanäle und SFTP-Sitzungen unterstützen kann, und dokumentieren Sie anschließend einen unterstützten Ansatz oder stellen Sie einen solchen bereit, mit Abdeckung für das Szenario mit einem Befehl, einem Terminal und zwei SFTP-Sitzungen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- networking
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100