erlyberly icon indicating copy to clipboard operation
erlyberly copied to clipboard

Can't connect to remote nodes via SSH tunnel

Open StormBytePP opened this issue 5 years ago • 2 comments

I am learning and currently trying erlyberly in my local network server and I am facing currently an issue that I can't connect to node despite it is being listed correctly.

For achieving this, I have a little ssh tunnel to the machine created with the command

ssh -N -L 9001:localhost:9001 -L 4369:localhost:4369 -L 4000:localhost:4000 -L 45437:localhost:45437 my_user@my_host

Then, on server I have a little phoenix test run by

iex --name [email protected] --cookie 123 --erl "-kernel inet_dist_listen_min 9001 inet_dist_listen_max 9001" -S mix phx.server

I can see the node with

epmd -names
epmd: up and running on port 4369 with data:
name bench_test at port 9001

and I can run the :observer on the tunnel as well as loading the page via localhost:4000 (which is redirected to the tunnel)

But when I execute java -jar target/*runnable.jar despide I see the node in the list (with the correct Cookie), I get "Cannot connect to peer node".

Am I missing a port redirect or something else?

StormBytePP avatar Feb 28 '19 18:02 StormBytePP

Did you manage to get any progress with this?

arjun289 avatar Oct 26 '21 14:10 arjun289

Hi @StormBytePP,

Appreciate it if you could update this ticket, in case you were able to resolve it.

In fact, I am also getting the same error "Cannot connect to peer node". My setup is quite simple compared to yours; both the Erlang node and Erlyberly are running in the same Linux machine.

bhuvanplus avatar Feb 08 '23 04:02 bhuvanplus