[GH-ISSUE #5134] Netbird SSH's MFA Gives "context deadline exceeded" after 30s #10767

Open
opened 2026-08-05 01:27:13 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @clarkmcc on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5134

Describe the problem

When I try to SSH after updating, it is forcing me to do MFA every time (this is very burdensome by the way, can you just remember the MFA for 5 minutes or something?) and if it takes longer than 30s to get the MFA code, then I can't login.

sudo netbird ssh 68bb2036b0ee469f9dfddfbe
SSH authentication required.
Please do the SSO login in your browser.
If your browser didn't open automatically, use this URL to log in:

https://login.microsoftonline.com/...

Waiting for authentication...
Failed to connect to <username>@68bb2036b0ee469f9dfddfbe:22

Troubleshooting steps:
  1. Check peer connectivity: netbird status -d
  2. Verify SSH server is enabled on the peer
  3. Ensure correct hostname/IP is used
Error: dial 68bb2036b0ee469f9dfddfbe:22: request JWT token: wait for JWT token: rpc error: code = DeadlineExceeded desc = context deadline exceeded

Expected behavior

  1. I shouldn't have to MFA for every SSH command
  2. The context timeout should be longer than 30s

Are you using NetBird Cloud?

No

NetBird version

0.60.4

Originally created by @clarkmcc on GitHub (Jan 19, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5134 **Describe the problem** When I try to SSH after updating, it is forcing me to do MFA every time (this is very burdensome by the way, can you just remember the MFA for 5 minutes or something?) and if it takes longer than 30s to get the MFA code, then I can't login. ```bash sudo netbird ssh 68bb2036b0ee469f9dfddfbe SSH authentication required. Please do the SSO login in your browser. If your browser didn't open automatically, use this URL to log in: https://login.microsoftonline.com/... Waiting for authentication... Failed to connect to <username>@68bb2036b0ee469f9dfddfbe:22 Troubleshooting steps: 1. Check peer connectivity: netbird status -d 2. Verify SSH server is enabled on the peer 3. Ensure correct hostname/IP is used Error: dial 68bb2036b0ee469f9dfddfbe:22: request JWT token: wait for JWT token: rpc error: code = DeadlineExceeded desc = context deadline exceeded ``` **Expected behavior** 1. I shouldn't have to MFA for every SSH command 2. The context timeout should be longer than 30s **Are you using NetBird Cloud?** No **NetBird version** 0.60.4
saavagebueno added the triage-needed label 2026-08-05 01:27:13 -04:00
Author
Owner

@clarkmcc commented on GitHub (Jan 19, 2026):

Regarding the burdensome MFA, Microsoft (our IDP) has a limit on the number of MFA's you can do in a given amount of time. So when testing failures of the netbird ssh command, I exhausted that limit and couldn't MFA validate anymore, and thus could not use netbird SSH anymore 🙄

<!-- gh-comment-id:3769571628 --> @clarkmcc commented on GitHub (Jan 19, 2026): Regarding the burdensome MFA, Microsoft (our IDP) has a limit on the number of MFA's you can do in a given amount of time. So when testing failures of the `netbird ssh` command, I exhausted that limit and couldn't MFA validate anymore, and thus could not use netbird SSH anymore 🙄
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#10767