[PR #983] Fix ssh connection freeze #2957

Open
opened 2025-11-20 08:04:31 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/983

State: closed
Merged: Yes


Describe your changes

The ssh connection was freezing when accessing amazon linux to nodes or if the username did not exist.

Changes:

  • wait for terminal session to be ready to avoid freeze
  • sending proper error codes to cli if failure
  • sending log message on ssh session attempt

To Test

  • ssh connections between Linux <-> Mac, Mac <-> Mac, Linux <-> Linux (Either one or all cases)
  • test ssh connection to an Amazon Linux 2 machine
  • test connection to offline peer
  • test connection to non existing peer
  • test connection to online peer but non existing user

https://github.com/netbirdio/netbird/issues/514

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/983 **State:** closed **Merged:** Yes --- ## Describe your changes The ssh connection was freezing when accessing amazon linux to nodes or if the username did not exist. Changes: - wait for terminal session to be ready to avoid freeze - sending proper error codes to cli if failure - sending log message on ssh session attempt ### To Test - ssh connections between Linux <-> Mac, Mac <-> Mac, Linux <-> Linux **(Either one or all cases)** - test ssh connection to an Amazon Linux 2 machine - test connection to offline peer - test connection to non existing peer - test connection to online peer but non existing user ## Issue ticket number and link https://github.com/netbirdio/netbird/issues/514 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:04:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2957