Skip to content

Instantly share code, notes, and snippets.

@pierot
Last active July 12, 2018 08:56
Show Gist options
  • Save pierot/b87e6e33703125578d6e5c63d0560c7e to your computer and use it in GitHub Desktop.
Save pierot/b87e6e33703125578d6e5c63d0560c7e to your computer and use it in GitHub Desktop.

Local

SSH to remote server

Remote

Exec command

netstat -ntlap | grep LISTEN

Discover two ports: epmd (eg 4369) and beam.smp (eg 33397)

Disconnect from remote server

Local

Exec command

ssh -L 4369:localhost:4369 -L 39566:localhost:39566 SERVER

New terminal

Local

Exec command

iex --name [email protected] --cookie 'COOKIENAME'

APPNAME and COOKIENAME can be found in rel/vm.args.eex and rel/config.exs

Local iex

Exec commands in iex

> Node.connect(:"[email protected]")
true
> :observer.start
:ok

Observer UI

Select the remote Node from the Nodes menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment