Skip to content

Instantly share code, notes, and snippets.

@mewisme
Last active June 6, 2025 10:52
Show Gist options
  • Select an option

  • Save mewisme/c77681d857e44511ed24f37e7f44ccfd to your computer and use it in GitHub Desktop.

Select an option

Save mewisme/c77681d857e44511ed24f37e7f44ccfd to your computer and use it in GitHub Desktop.
Using serveo.net to create tunnel

Using serveo.net to create tunnel

Tutorial

Step 1 (Your server)

  • Using ssh-keygen to generate key pair to get fringerprint.
  • Note your key's fingerprint to use later. Fingerprint look like: SHA256:07jcXlJ4SkBnyTmaVnmTpXuBiRx2+Q2adxbttO9gt0M.
ssh-keygen

Step 2

  • Create a CNAME point to serveo.net.
  • For each SSH key to allow, a TXT record at _serveo-authkey.[domain] = [fingerprint].

Step 3

  • Request your subdomain/domain from serveo.
ssh -R subdomain.example.com:80:localhost:3000 serveo.net

Step 4 (Your client)

  • Establish an SSH connection using the serveo.net service
ssh -J serveo.net user@subdomain.example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment