dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Unable to connect to SSH using Netbird IP

Open HKbool opened this issue 1 year ago • 11 comments

docker run --rm -d
--cap-add=NET_ADMIN
-e NB_SETUP_KEY=SETUP_KEY
-v netbird-client:/etc/netbird
-e NB_MANAGEMENT_URL=https://xxxxxxxx
netbirdio/netbird:latest

dashboard Show connected

Use the linux command ip addr Netbird ip cannot be found

What mappings are needed to start the container?

HKbool avatar May 24 '24 01:05 HKbool

@HKbool for SSH connection using netbird, you need to enable it on the client as well:

-e NB_ALLOW_SERVER_SSH=true

mlsmaycon avatar May 24 '24 07:05 mlsmaycon

There are web pages in the client that cannot be accessed using Netbird IP. @mlsmaycon

HKbool avatar May 24 '24 07:05 HKbool

When the container is started and joined -e NB_ALLOW_SERVER_SSH=true, it still fails to connect.

HKbool avatar May 24 '24 07:05 HKbool

Maybe I am not understanding the issue.

Can you share what is the role of the machine in which you run the docker command is? is it a routing peer, exit node, or is the machine you want to access via ssh?

mlsmaycon avatar May 24 '24 07:05 mlsmaycon

100.79.167.144 to 100.79.1.66 I want to access 100.79.1.66 through SSH connection and access 100.79.1.66 through a browser. There is web information on 100.79.1.66. There are two access methods. QQ截图20240524153906

HKbool avatar May 24 '24 07:05 HKbool

Do you have access control allowing this connection?

mlsmaycon avatar May 24 '24 07:05 mlsmaycon

yes 微信截图_20240524154540

HKbool avatar May 24 '24 07:05 HKbool

QQ截图20240524155654 Netbird network card not found

HKbool avatar May 24 '24 07:05 HKbool

@mlsmaycon

HKbool avatar May 25 '24 14:05 HKbool

I has the same issue, ssh is enable, sshd is running but still can't connect with. Tailscale works just fine, but using the netbird ip just doseen't work .-.

Sherensberk avatar Mar 26 '25 13:03 Sherensberk

I has the same issue, ssh is enable, sshd is running but still can't connect with. Tailscale works just fine, but using the netbird ip just doseen't work .-.

Netbird client is not currently using sshd, but a separate Go implementation of SSH server running on a different port.

You can use netbird ssh user@host command to establish a connection over the Netbird's internal SSH server.

There are long-term plans to change this and actually use sshd, but there is no timeline for this rework yet.

nazarewk avatar Mar 26 '25 17:03 nazarewk