Skip to content

SSH.Net with Dropbear: Session close after 30 minutes #568

@ganeshkamath89

Description

@ganeshkamath89

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions