Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to remote nodes via SSH tunnel #173

Open
StormBytePP opened this issue Feb 28, 2019 · 2 comments
Open

Can't connect to remote nodes via SSH tunnel #173

StormBytePP opened this issue Feb 28, 2019 · 2 comments

Comments

@StormBytePP
Copy link

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?

@arjun289
Copy link

Did you manage to get any progress with this?

@bhuvanplus
Copy link

bhuvanplus commented Feb 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants