Skip to content

Instantly share code, notes, and snippets.

@tmjoen
Created February 28, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmjoen/91a79f6e5663ca9c64b3a4ff24992d67 to your computer and use it in GitHub Desktop.
Save tmjoen/91a79f6e5663ca9c64b3a4ff24992d67 to your computer and use it in GitHub Desktop.
# ssh to remote

localhost$ ssh -p 30000 my_app@diamond

my_app@my_app.com$ epmd -names
epmd: up and running on port 4369 with data:
name my_app at port 43108
my_app@my_app.com$ exit

# set up ssh tunnel

localhost$ ssh -p 30000 -N -L 43108:localhost:43108 -L 4369:localhost:4369 my_app@my_app.com

# open new terminal session

localhost$ scutil --set HostName "my_app"
localhost$ erl -sname debug -setcookie my_app -run observer

# gotchas
#
# remember to build exrm release with :runtime_tools added to :applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment