SSH Into Local Machine on Enoki
Last updated
Last updated
With Enoki, you can easily SSH into your local machine to run your code using local compute. With this, you will benefit from Enoki's multiplayer functionality, while keeping your dev environment the same.
1) To start, sign up with a free account on ngrok . This is a secure SSH tunneling solution
2) Start your ssh server on your respective OS: For Mac, follow this: For Windows, follow this: For Linux, follow this:
3) Retrieve your free authtoken from ngrok () and run the following with your local terminal:
ngrok config add-authtoken <authtoken>
ngrok tcp 22
You'll see ngrok forwarding traffic to something like this: tcp://<ngrok_number>.tcp.ngrok.io:<port>
4) On an Enoki workspace, open terminal and ssh into your local machine using this: ssh -p <port> user@<ngrok_number>.tcp.ngrok.io