Closed garret closed 3 months ago
I don't think it's a connectivity issue. That error suggests it's an authentication issue with your key.
Please double check that the key in the compose file is the same key that Beszel gives you when you add a new system.
If it is, try changing your compose file to use colon syntax for environment variables like the example file. I suspect this may be the problem.
If that still fails, double check that you have both id_ed25519.pub
and id_ed25519
files in your beszel_data
directory.
I checked and the public key is the same in the compose and when I try to add a new system. I also have the private and public key in the beszel config folder. Changed the compose with colon but now get:
dial tcp 127.0.0.1:45876: connect: connection refused
ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
:point_up: This error means the agent was found but the key is incorrect. Likely because of the formatting of your compose env vars.
dial tcp 127.0.0.1:45876: connect: connection refused
:point_up: This error means the hub can't find the agent. If you're seeing this, you need to delete the system in the hub and re-add it using the method you used when you got the first error.
I played more with the variables syntax and after playing with "
(according to beszel-hub copied docker-compose) and '
(according to example). I managed to solve by using the "
. Therefore, now the key value is:
KEY: "ssh-ed25519 willnotwriteithere"
...and for some reason now it works. Thank you for the support. Will close the issue.
No worries, glad you got it working
I am running around 40 docker containers on a host with Nixos x86_64. Never had an issue of connecting some hosts among them (see *arr and downloader clients). However, I cannot manage at all to have the beszel agent and the hub connected between them. This is the docker-compose I am using:
On the host I have opened the
45876
TCP port on the firewall and tested that I can connect to it via telnet succesfully. Both hub and agent logs seems fine after some days of running:Hub:
Agent:
I tried adding as host in the hub the following combinations:
localhost
,beszel-agent
,192.168.0.5
(lan IP address),10.0.0.5
(wireguard IP address) but the agent is always down. I also tried with adding thehost.docker.internal:host-gateway
in the hub compose and then usinghost.docker.internal
as hostname or disabling thenetwork_mode: host
and exposing just the45876
port. Nothing results in the hub connecting to the agent.On the hub I get the following error on the web interface logs:
I also tried to cancel all the config of the hub and restart the container again (and thus getting a new SSH key).
Do you know what I am doing wrong? I have been really surprised in how difficult it has been for me to try this project. I am running most of the famous docker images and never had an issue.