Enabling Public Access with ngrok


Requirements: CoreSSH Server, ngrok

Introduction

You can make CoreSSH Server accessible on the public internet by using the ngrok agent. All that’s required is installing the agent on the same machine where CoreSSH Server is running and launching the tunnel.

Before you get started

Before installing ngrok you will need to sign up at ngrok.com. In the ngrok dashboard, open the Your Authtoken page, copy and save the token shown.

Install ngrok on the server

Install the ngrok agent on the server where CoreSSH Server is running. After installation, open a terminal and configure ngrok with your authtoken. This only needs to be done once:

ngrok config add-authtoken 39AiQm9...

Launch ngrok

To expose CoreSSH Server over the internet, start ngrok with the TCP port CoreSSH Server is listening on. Replace 22 if CoreSSH Server is running on a different port.

ngrok tcp 22

That's all you should need to do. Once started, ngrok will display a public TCP address that forwards traffic to your local server.

ngrok
(Ctrl+C to quit)
Session Status                online
Account                       example@gmail.com (Plan: Free)
Update                        update available (version 3.36.0, Ctrl-U to update)
Version                       3.24.0-msix
Region                        United States (us)
Latency                       38ms
Web Interface                 http://127.0.0.1:4040
Forwarding                    tcp://6.tcp.ngrok.io:14168 -> localhost:22

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@coressh.com.