sshnet / sshnet/SSH.NET

SSH.Net with Dropbear: Session close after 30 minutes

Aperta
#568 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
C#
Stelle
4.4k
Fork
993
Merge medio
9g 21h
PR unite (30g)
1

Descrizione

We are using Dropbear with SSH.Net for an application.

Setup:

  • The Dropbear is installed on Ubuntu 18.04 on an x86 system.
  • Our SSHClient uses Key based authentication mechanism.
  • Connection works normally in the beginning.
  • After 30 minutes however, the session disconnects abruptly.
  • This behaviour is consistant every time.

Changes attempted:

  • We have checked for successful rekeying by reducing the re-keying time in Dropbear to 15 minutes.
  • We have passed -K 60 to Dropbear in an attempt to extend connection time.
  • We have changed SSH.Net connection with timeout and channelclosetimeout to 20 minutes
  • We have used KeepAliveInterval of 1 minute (as well as 10 seconds) in SSH.Net

Environment:

  • We have used the latest dropbear (version 2019.78)
  • We have tried this with the SSH.Net (version 2016.1.0 (master / develpment / cwl) branches and tried it against the forks of SSH.net.core branches)
  • We have tried the Nuget package (2016.1.0) available in Visual Studio as well as the Nuget package with support for .net core SSH.Net.Fork(2018.8.25.2)

Other test case combinations tried and working so far:

  • OpenSSH with SSH.Net
  • Putty with OpenSSH
  • Putty with Dropbear

Has anybody faced this kind of disconnection?

Does anyone have any recommendation or workaround for this problem?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Iniziare dal comportamento di connessione e keepalive di SSHClient e riprodurre la disconnessione ripetibile dopo 30 minuti con Dropbear 2019.78 su Ubuntu 18.04. Confrontare le configurazioni elencate di rekeying, timeout, channel-close-timeout e KeepAliveInterval con le combinazioni funzionanti di OpenSSH e PuTTY. Il lavoro è completato quando viene identificata una causa confermata oppure viene documentato un workaround affidabile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
networking
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.