Skip to main content

SSH Tunnel

Before completing enterprise certification, you can use an SSH tunnel to forward service ports inside an instance, allowing your local computer to access services running in the instance.

Use SSH to proxy the instance port to your local machine. The specific steps are:

Step 1: Start your service inside the instance (for example, if your service listens on port 8188, we’ll use 8188 as an example below).

Step 2: Execute the proxy command in your local computer terminal (cmd / powershell / terminal / iterm2, etc.):

ssh -CNg -L 8188:127.0.0.1:8188 root@proxy-ai.capitalonline.net -p 40782

Here, root@proxy-ai.capitalonline.net and 40782 are the access address and port from the instance’s SSH login command. Replace them with the values from your own instance.
8188:127.0.0.1:8188 means mapping port 8188 inside the instance to local port 8188.

tip

Note: After executing the ssh command, it is normal to see no logs as long as it doesn’t prompt you again for a password or exit with an error.

If cmd/powershell on Windows keeps showing password errors, it’s because pasting is not supported. Please type the password manually (it won’t be visible as you type).

ssh-tunnel-001

Step 3: Open http://127.0.0.1:8188 in your local browser to access the service.
Make sure the 8188 port here matches the port specified in 8188:127.0.0.1:8188 above.

ssh-tunnel-002