[GH-ISSUE #5009] How do disable SSH server i.e. undo netbird up --allow-server-ssh on Linux? #10536

Closed
opened 2026-08-05 01:26:16 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @lorenzbaum on GitHub (Dec 30, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5009

Describe the problem

It is unclear how to disable the SSH server once enabled on Linux systems. (For Windows it is clear, though.)

To Reproduce

Steps to reproduce the behavior:

  1. Create NetBird SSH Policy e.g., 'all to all Full Access'
  2. On a Linux system run netbird down && netbird up --allow-server-ssh --enable-ssh-root
  3. netbird ssh ubuntu@monitor.anon-QyPf0.domain from another machine works
  4. Now I want to disable SSH Server again. But how?
  • netbird down && netbird up --allow-server-ssh false --enable-ssh-root false has no effect
  • also one might expect netbird down && netbird up to work

Expected behavior

A clear option in the command shell to undo the changes from netbird down && netbird up --allow-server-ssh --enable-ssh-root.
Additionally:

  • Why do I need to restart netbird by down & up? Why is there no netbird set <flag>?

Are you using NetBird Cloud?

Self-host NetBird's control plane.

NetBird version

0.61.0

Is any other VPN software installed?

No

Debug output

xps13-215-55.anon-QyPf0.domain:
NetBird IP: 100.100.215.55
Public key: PjTyegYSJQlteXUW3ynIVXxbGj+CR+oCfc5jHWQeMig=
Status: Connected
-- detail --
Connection type: P2P
ICE candidate (Local/Remote): srflx/srflx
ICE candidate endpoints (Local/Remote): 198.51.100.0:51820/198.51.100.6:29784
Relay server address: rel://vpn.anon-PhkXk.domain:33080
Last connection update: 10 minutes, 44 seconds ago
Last WireGuard handshake: 29 seconds ago
Transfer status (received/sent) 9.6 KiB/8.2 KiB
Quantum resistance: false
Networks: -
Latency: 13.785548ms

OS: linux/amd64
Daemon version: 0.61.0
CLI version: 0.61.0
Profile: default
Management: Connected to https://vpn.anon-PhkXk.domain:33073
Signal: Connected to https://vpn.anon-PhkXk.domain:10000
Relays:
[stun:vpn.anon-PhkXk.domain:3478] is Available
[turn:vpn.anon-PhkXk.domain:3478?transport=udp] is Available
[rel://vpn.anon-PhkXk.domain:33080] is Available
Nameservers:
FQDN: monitor.anon-QyPf0.domain
NetBird IP: 100.100.77.39/16
Interface type: Kernel
Quantum resistance: false
Lazy connection: false
SSH Server: Enabled
Networks: -
Forwarding rules: 0
Peers count: 6/10 Connected

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @lorenzbaum on GitHub (Dec 30, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5009 **Describe the problem** It is unclear how to disable the SSH server once enabled on Linux systems. (For Windows it is clear, though.) **To Reproduce** Steps to reproduce the behavior: 1. Create NetBird SSH Policy e.g., 'all to all Full Access' 2. On a Linux system run `netbird down && netbird up --allow-server-ssh --enable-ssh-root` 3. `netbird ssh ubuntu@monitor.anon-QyPf0.domain` from another machine works 4. Now I want to disable SSH Server again. But how? - `netbird down && netbird up --allow-server-ssh false --enable-ssh-root false` has no effect - also one might expect `netbird down && netbird up` to work **Expected behavior** A clear option in the command shell to undo the changes from `netbird down && netbird up --allow-server-ssh --enable-ssh-root`. Additionally: - [ ] Why do I need to restart netbird by _down & up_? Why is there no `netbird set <flag>`? **Are you using NetBird Cloud?** Self-host NetBird's control plane. **NetBird version** 0.61.0 **Is any other VPN software installed?** No **Debug output** xps13-215-55.anon-QyPf0.domain: NetBird IP: 100.100.215.55 Public key: PjTyegYSJQlteXUW3ynIVXxbGj+CR+oCfc5jHWQeMig= Status: Connected -- detail -- Connection type: P2P ICE candidate (Local/Remote): srflx/srflx ICE candidate endpoints (Local/Remote): 198.51.100.0:51820/198.51.100.6:29784 Relay server address: rel://vpn.anon-PhkXk.domain:33080 Last connection update: 10 minutes, 44 seconds ago Last WireGuard handshake: 29 seconds ago Transfer status (received/sent) 9.6 KiB/8.2 KiB Quantum resistance: false Networks: - Latency: 13.785548ms OS: linux/amd64 Daemon version: 0.61.0 CLI version: 0.61.0 Profile: default Management: Connected to https://vpn.anon-PhkXk.domain:33073 Signal: Connected to https://vpn.anon-PhkXk.domain:10000 Relays: [stun:vpn.anon-PhkXk.domain:3478] is Available [turn:vpn.anon-PhkXk.domain:3478?transport=udp] is Available [rel://vpn.anon-PhkXk.domain:33080] is Available Nameservers: FQDN: monitor.anon-QyPf0.domain NetBird IP: 100.100.77.39/16 Interface type: Kernel Quantum resistance: false Lazy connection: false SSH Server: Enabled Networks: - Forwarding rules: 0 Peers count: 6/10 Connected **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:26:16 -04:00
Author
Owner

@heisbrot commented on GitHub (Dec 30, 2025):

Hey @lorenzbaum,

Try the command below. We will update our docs to make it clearer.

netbird down && netbird up --allow-server-ssh=false

<!-- gh-comment-id:3699536079 --> @heisbrot commented on GitHub (Dec 30, 2025): Hey @lorenzbaum, Try the command below. We will update our docs to make it clearer. `netbird down && netbird up --allow-server-ssh=false`
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#10536