[GH-ISSUE #2498] netbird ssh is broken on windows #5352

Open
opened 2026-08-05 01:02:46 -04:00 by saavagebueno · 3 comments
Owner

Originally created by @Silex on GitHub (Aug 29, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2498

Describe the problem

When using netbird ssh linuxbox on windows, it connects but then the terminal is broken because it does not handle newlines correctly. We can type commands but nothing is properly displayed back.

Doing it from another linux box works as expected.

To Reproduce

Enable SSH on a linux box, then from a windows box do netbird ssh linuxbox and try to use the terminal.

Expected behavior

Normal terminal behavior.

Are you using NetBird Cloud?

Self hosted.

NetBird version

0.28.9

Originally created by @Silex on GitHub (Aug 29, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2498 **Describe the problem** When using `netbird ssh linuxbox` on windows, it connects but then the terminal is broken because it does not handle newlines correctly. We can type commands but nothing is properly displayed back. Doing it from another linux box works as expected. **To Reproduce** Enable SSH on a linux box, then from a windows box do `netbird ssh linuxbox` and try to use the terminal. **Expected behavior** Normal terminal behavior. **Are you using NetBird Cloud?** Self hosted. **NetBird version** `0.28.9`
saavagebueno added the waiting-feedbacksshtriage-needed labels 2026-08-05 01:02:46 -04:00
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @Silex,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

<!-- gh-comment-id:2835658608 --> @nazarewk commented on GitHub (Apr 28, 2025): Hello @Silex, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

@Silex commented on GitHub (Apr 28, 2025):

With 0.43.0 netbird ssh seems to be completely broken.

In a normal windows terminal it says Error: open C:\ProgramData\Netbird\config.json: Access is denied., and it an elevated shell it says:

PS C:\Windows\system32> ping scan2file

Pinging scan2file.netbird.stvs [100.70.33.240] with 32 bytes of data:
Reply from 100.70.33.240: bytes=32 time=16ms TTL=64
Reply from 100.70.33.240: bytes=32 time=12ms TTL=64

Ping statistics for 100.70.33.240:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 12ms, Maximum = 16ms, Average = 14ms
Control-C

PS C:\Windows\system32> ssh root@scan2file
Warning: Permanently added 'scan2file' (ED25519) to the list of known hosts.
Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-131-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Mon Apr 28 07:54:24 PM CEST 2025

  System load:  0.0                Processes:              111
  Usage of /:   39.8% of 14.66GB   Users logged in:        0
  Memory usage: 19%                IPv4 address for ens18: 10.10.10.93
  Swap usage:   0%


Expanded Security Maintenance for Applications is not enabled.

93 updates can be applied immediately.
54 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status

New release '24.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Mon Apr 28 19:47:07 2025 from 10.7.7.13
root@scan2file.stvs.com ~ #
logout
Connection to scan2file closed.

PS C:\Windows\system32> netbird ssh scan2file
Error: dial tcp 100.70.33.240:44338: connectex: No connection could be made because the target machine actively refused it.
Couldn't connect. Please check the connection status or if the ssh server is enabled on the other peer
You can verify the connection by running:

 netbird status

Error: dial tcp 100.70.33.240:44338: connectex: No connection could be made because the target machine actively refused it.

As you can see I can ssh to the box "scan2file" just fine, just netbird ssh won't.

Both peers are version 0.43.0, selfhosted.

<!-- gh-comment-id:2836048058 --> @Silex commented on GitHub (Apr 28, 2025): With `0.43.0` netbird ssh seems to be completely broken. In a normal windows terminal it says `Error: open C:\ProgramData\Netbird\config.json: Access is denied.`, and it an elevated shell it says: ``` PS C:\Windows\system32> ping scan2file Pinging scan2file.netbird.stvs [100.70.33.240] with 32 bytes of data: Reply from 100.70.33.240: bytes=32 time=16ms TTL=64 Reply from 100.70.33.240: bytes=32 time=12ms TTL=64 Ping statistics for 100.70.33.240: Packets: Sent = 2, Received = 2, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 12ms, Maximum = 16ms, Average = 14ms Control-C PS C:\Windows\system32> ssh root@scan2file Warning: Permanently added 'scan2file' (ED25519) to the list of known hosts. Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-131-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro System information as of Mon Apr 28 07:54:24 PM CEST 2025 System load: 0.0 Processes: 111 Usage of /: 39.8% of 14.66GB Users logged in: 0 Memory usage: 19% IPv4 address for ens18: 10.10.10.93 Swap usage: 0% Expanded Security Maintenance for Applications is not enabled. 93 updates can be applied immediately. 54 of these updates are standard security updates. To see these additional updates run: apt list --upgradable Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status New release '24.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it. Last login: Mon Apr 28 19:47:07 2025 from 10.7.7.13 root@scan2file.stvs.com ~ # logout Connection to scan2file closed. PS C:\Windows\system32> netbird ssh scan2file Error: dial tcp 100.70.33.240:44338: connectex: No connection could be made because the target machine actively refused it. Couldn't connect. Please check the connection status or if the ssh server is enabled on the other peer You can verify the connection by running: netbird status Error: dial tcp 100.70.33.240:44338: connectex: No connection could be made because the target machine actively refused it. ``` As you can see I can ssh to the box "scan2file" just fine, just netbird ssh won't. Both peers are version `0.43.0`, selfhosted.
Author
Owner

@Exitium-DEV commented on GitHub (Oct 20, 2025):

Still an issue months later. Netbird SSH outright does not work on Windows.

<!-- gh-comment-id:3422521318 --> @Exitium-DEV commented on GitHub (Oct 20, 2025): Still an issue months later. Netbird SSH outright does not work on Windows.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#5352