[GH-ISSUE #4965] CLI ssh is redirecting to netbird even though ssh was not enabled in the web interface #9618

Open
opened 2026-08-05 01:22:50 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @iandol on GitHub (Dec 18, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4965

Describe the problem

I have a remote Ubuntu system (running 0.60.7) which has its own ssh server running, where ssh was NOT enabled in the web console. However when I try to ssh to that machine, it hangs and it seems netbird is still taking over the ssh connection. I now cannot login and fix that system as ssh is broken! How can I access it, is there a way for the web console to fix this?

debug1: OpenSSH_10.0p2, LibreSSL 3.3.6
debug1: Reading configuration data /Users/ian/.ssh/config
debug1: /Users/ian/.ssh/config line 138: Applying options for prisys-002
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/99-netbird.conf
debug1: /etc/ssh/ssh_config.d/99-netbird.conf line 8: Applying options for prisys-002
debug1: Executing command: '/opt/homebrew/Cellar/netbird/0.60.7/bin/netbird ssh detect prisys-002.cloud.lab 22'
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: auto-mux: Trying existing master at '/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0'
debug1: Control socket "/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0" does not exist
debug1: Executing proxy command: exec /opt/homebrew/Cellar/netbird/0.60.7/bin/netbird ssh proxy prisys-002.cloud.lab 22
debug1: identity file /Users/ian/.ssh/prisys type 0
debug1: identity file /Users/ian/.ssh/prisys-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_10.0
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.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=hEDAZSxzNQDdinIMNUfZ4swmXbDFPKABilk2X-zrgPw&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=9185879ce1d4e53c1a7a18be773ca2aff526a4bd4ca3f70a

Waiting for authentication...
debug1: Remote protocol version 2.0, remote software version NetBird-SSH-Proxy-0.60.7
debug1: compat_banner: no match: NetBird-SSH-Proxy-0.60.7
debug1: Authenticating to prisys-002.cloud.lab:22 as 'prisys'
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: mlkem768x25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:xxx
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
Warning: Permanently added 'prisys-002.cloud.lab' (ED25519) to the list of known hosts.
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss>
debug1: kex_ext_info_check_ver: ping@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
Authenticated to prisys-002.cloud.lab (via proxy) using "none".
debug1: setting up multiplex master socket
debug1: channel 0: new mux listener [/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0] (inactive timeout: 0)
debug1: control_persist_detach: backgrounding master process
debug1: forking to background
debug1: Entering interactive session.
debug1: pledge: id
debug1: multiplexing control connection
debug1: channel 1: new mux-control [mux-control] (inactive timeout: 0)
debug1: channel 2: new session [client-session] (inactive timeout: 0)
debug1: Sending environment.
debug1: channel 2: setting env LC_ALL = "en_US.UTF-8"
debug1: channel 2: setting env LANG = "en_US.UTF-8"
        return python" ] && return 0en\014n\014r" "$*";> /dev/fd/2;r;ty\\f\\\\\\r\\\\\\b \\\\\\047\\\\\\134\\\\\\n\\\\\\041)"'  '/bin/sh
debug1: mux_client_request_session: master session id: 2

To Reproduce

Steps to reproduce the behavior:

  1. Update netbird client on remote system. Don't use --allow-ssh-server
  2. Try to native ssh into the remote, ssh authorises via web browser then hangs.
  3. native ssh CLI hangs.

Expected behavior

Not break an existing sshd server deployment.

Are you using NetBird Cloud?

NetBird Cloud.

NetBird version

0.60.7

Is any other VPN software installed?

No.

Debug output

Cannot access the remote system...

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • [cannot access] Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • [cannot access] Restarted the NetBird client
  • [cannot access] Disabled other VPN software
  • [cannot access] Checked firewall settings
Originally created by @iandol on GitHub (Dec 18, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4965 **Describe the problem** I have a remote Ubuntu system (running 0.60.7) which has its own ssh server running, where ssh was NOT enabled in the web console. However when I try to ssh to that machine, it hangs and it seems netbird is still taking over the ssh connection. I now cannot login and fix that system as ssh is broken! How can I access it, is there a way for the web console to fix this? ``` debug1: OpenSSH_10.0p2, LibreSSL 3.3.6 debug1: Reading configuration data /Users/ian/.ssh/config debug1: /Users/ian/.ssh/config line 138: Applying options for prisys-002 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Reading configuration data /etc/ssh/ssh_config.d/99-netbird.conf debug1: /etc/ssh/ssh_config.d/99-netbird.conf line 8: Applying options for prisys-002 debug1: Executing command: '/opt/homebrew/Cellar/netbird/0.60.7/bin/netbird ssh detect prisys-002.cloud.lab 22' debug1: /etc/ssh/ssh_config line 54: Applying options for * debug1: /etc/ssh/ssh_config line 58: Applying options for * debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug1: auto-mux: Trying existing master at '/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0' debug1: Control socket "/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0" does not exist debug1: Executing proxy command: exec /opt/homebrew/Cellar/netbird/0.60.7/bin/netbird ssh proxy prisys-002.cloud.lab 22 debug1: identity file /Users/ian/.ssh/prisys type 0 debug1: identity file /Users/ian/.ssh/prisys-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_10.0 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.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=hEDAZSxzNQDdinIMNUfZ4swmXbDFPKABilk2X-zrgPw&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=9185879ce1d4e53c1a7a18be773ca2aff526a4bd4ca3f70a Waiting for authentication... debug1: Remote protocol version 2.0, remote software version NetBird-SSH-Proxy-0.60.7 debug1: compat_banner: no match: NetBird-SSH-Proxy-0.60.7 debug1: Authenticating to prisys-002.cloud.lab:22 as 'prisys' debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: mlkem768x25519-sha256 debug1: kex: host key algorithm: ssh-ed25519 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ssh-ed25519 SHA256:xxx debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory Warning: Permanently added 'prisys-002.cloud.lab' (ED25519) to the list of known hosts. debug1: ssh_packet_send2_wrapped: resetting send seqnr 3 debug1: rekey out after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: ssh_packet_read_poll2: resetting read seqnr 3 debug1: SSH2_MSG_NEWKEYS received debug1: rekey in after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_ext_info_client_parse: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,rsa-sha2-512,ssh-rsa,ssh-dss> debug1: kex_ext_info_check_ver: ping@openssh.com=<0> debug1: SSH2_MSG_SERVICE_ACCEPT received Authenticated to prisys-002.cloud.lab (via proxy) using "none". debug1: setting up multiplex master socket debug1: channel 0: new mux listener [/tmp/kssh-rdir-501/kssh-8930-f83d39525e94a1d487f3c29f9832f8c09bdfffa0] (inactive timeout: 0) debug1: control_persist_detach: backgrounding master process debug1: forking to background debug1: Entering interactive session. debug1: pledge: id debug1: multiplexing control connection debug1: channel 1: new mux-control [mux-control] (inactive timeout: 0) debug1: channel 2: new session [client-session] (inactive timeout: 0) debug1: Sending environment. debug1: channel 2: setting env LC_ALL = "en_US.UTF-8" debug1: channel 2: setting env LANG = "en_US.UTF-8" return python" ] && return 0en\014n\014r" "$*";> /dev/fd/2;r;ty\\f\\\\\\r\\\\\\b \\\\\\047\\\\\\134\\\\\\n\\\\\\041)"' '/bin/sh debug1: mux_client_request_session: master session id: 2 ``` **To Reproduce** Steps to reproduce the behavior: 1. Update netbird client on remote system. Don't use `--allow-ssh-server` 2. Try to native ssh into the remote, ssh authorises via web browser then hangs. 3. native ssh CLI hangs. **Expected behavior** Not break an existing sshd server deployment. **Are you using NetBird Cloud?** NetBird Cloud. **NetBird version** 0.60.7 **Is any other VPN software installed?** No. **Debug output** Cannot access the remote system... **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [cannot access] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [cannot access] Restarted the NetBird client - [cannot access] Disabled other VPN software - [cannot access] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:22:50 -04:00
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#9618