Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetBird SSH Server Access Requiring Machine Reboot #2816

Open
AV3T opened this issue Oct 30, 2024 · 3 comments
Open

NetBird SSH Server Access Requiring Machine Reboot #2816

AV3T opened this issue Oct 30, 2024 · 3 comments

Comments

@AV3T
Copy link

AV3T commented Oct 30, 2024

Hi, I have recently encountered issues with the NetBird's built-in SSH server.

Previously I could do:

  1. netbird up --allow-server-ssh -k <key>.
  2. Once the peer shows up in dashboard, then enable the SSH access on it.
  3. Last step would be sudo netbird ssh <target> which would grant SSH access to the peer as the root user.

However, at the moment, for the SSH server to work, the peer requires a reboot, or issuing netbird down followed by netbird up --allow-server-ssh, while the SSH Access is enabled within NetBird's dashboard.

Same issue regarding disabling of the SSH access. The peer needs to be rebooted for the dashboard SSH access change to take place.

I tried disabling the SSH server access while the peer is powered off, and then enabling it once the peer is powered on via the NetBird's dashboard, however, I have faced issues connecting to it. It almost seems like the netbird service on the peer now requires a restart for the dashboard SSH access changes to take place, which was not the case before.

This defeats the purpose of the SSH server as if deployed remotely, the peer can't be accessed, and the peer requires remote access to fix the issue.

Please let me know if I can provide any additional details. Thank you,

@mgarces
Copy link
Contributor

mgarces commented Oct 30, 2024

hey @AV3T thank you for this report.
Can you please tell us:

  • client version
  • OS version (release and kernel)

I would try to replicate on our side before asking for anything else. Thanks for the info!

@AV3T
Copy link
Author

AV3T commented Oct 30, 2024

Hello @mgarces , you are most welcome.

The client version in this case is 0.30.3.

I was previously able to use the built-in SSH feature on version 0.30.1 of the client without issues, but that is no longer the case. I experience the same issue on the 0.30.1 client version now as well.

The host OS version is Ubuntu 24.04.1 LTS, kernel is 6.8.0-47-generic.

The peer OS is Ubuntu 24.04 LTS, kernel is 6.8.0-41-generic.

Edit: The NetBird in use if the official version, and not the self-hosted one - if that helps as well. Thank you

@AV3T
Copy link
Author

AV3T commented Oct 30, 2024

Additional update:

I was able to SSH to the peer with built-in server after changing the group to which the peer belongs to. 44338/TCP is whitelisted/allowed within both groups. I wonder if the group change caused the netbird service to communicate to the dashboard and fetch the SSH access information at that point. Weird, but hope additional information helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants