OneLine VPN Back to the one line

Get a server

How to get a VPS in 5 minutes

This is for someone who has never opened a terminal. You will rent a small computer that stays on, connect to it, and paste one line. That computer becomes a private network for your family: safer on public Wi‑Fi, with every device talking to a server you control.

Two words, in plain language

What is a server?

A server is a computer in a data center that you rent by the month. It stays on when your laptop is closed. Phones and computers in your family connect to it. You do not buy a box or open it. You only need the address it is given.

What is SSH?

SSH is a text door into that computer. You open an app called Terminal on your own computer, type one line, and the words you type next run on the server. There are no windows to click after that. The installer asks two questions, then it is done.

What to order

About $4–6 a month is enough for a family of up to about 10 devices. Prices change. Check the provider’s own site before you pay.

Do these in order

  1. 01

    Pick a provider and create an account

    Any of these will do. The links are the companies’ own sites, with no referral codes:

    Hetzner Cloud, DigitalOcean, Vultr, Contabo.

    Sign up with your email. Prices change, so read the price on that site.

  2. 02

    Choose a location close to you

    The form calls this a location or a region. Pick the city nearest the people who will use the network. Closer is a bit quicker. Nothing else about the place matters for this guide.

  3. 03

    Choose Ubuntu 24.04 and the smallest plan

    On the order form, select the image named Ubuntu 24.04. Then select the smallest size: 1 CPU, 1 GB memory, 10 GB disk or more.

    Order form. The two rows you want are marked Selected.

    Image

    Ubuntu 22.04
    Ubuntu 24.04Selected
    Debian 12

    Size

    1 vCPU · 1 GB RAM · 10 GBSelected
    2 vCPU · 2 GB RAM · 40 GB
  4. 04

    Create a root password

    Type a long password and write it down somewhere only you can open. If the form offers an SSH key and you have never made one, skip the key and use the password. One or the other is enough.

  5. 05

    Create the server and wait until it is running

    Press the create button. Wait until the status says Running. This often takes under a minute.

  6. 06

    Copy the IPv4 address

    Open the server’s page. Copy the public IPv4. It looks like four numbers with dots. Leave the password where the page shows it. You will type that password in a moment, and it will not appear on screen.

    Server page after it is running. Copy the IPv4. The password is the one you just set.
    IPv4203.0.113.10
    Userroot
    Passwordthe one you saved
    StatusRunning
  7. 07

    On Windows, open Terminal

    Do this step only if the computer in front of you is Windows. Click Start, type Terminal, and press Enter on Windows Terminal.

    Start menu search.
    Terminal
    App · Windows Terminal
  8. 08

    On a Mac, open Terminal

    Do this step only if the computer is a Mac. Press Command and Space together. That opens Spotlight. Type Terminal and press Enter.

    Spotlight search.
    Terminal
    Application
  9. 09

    Type the connection command

    In the terminal, put your IPv4 where it says YOUR_IP. Then press Enter. Example: if the address is 203.0.113.10, the line is ssh root@203.0.113.10.

    ssh root@YOUR_IP
  10. 10

    Type yes for the fingerprint question

    The first time, the terminal asks if you trust this server. Type the word yes and press Enter. You only do this once for that server.

    yes
  11. 11

    Type the root password

    The terminal now says password:. Type the password you saved. Nothing will appear: no dots, no letters, and the cursor will look stuck. That is normal. Press Enter when you have finished the whole password.

    root@203.0.113.10's password: (invisible while you type) root@server:~#
  12. 12

    Paste the one line and press Enter

    You are now on the server. Paste this and press Enter. It downloads the installer, checks the file, and starts the questions.

    curl -fsSL https://onelinevpn.com/install | sudo bash

What the installer will ask

It asks for two things. Get both in Telegram before you answer, or switch to Telegram while it waits.

The bot token, from @BotFather

  1. A

    Open @BotFather

    In Telegram’s search, open the bot named BotFather. It has a blue check in the name.

  2. B

    Send /newbot

    Type /newbot and send it. Choose a display name, then a username that ends in “bot”.

  3. C

    Copy the token

    BotFather replies with a token. It is a long string with a colon in the middle. Copy all of it. That is the answer to the installer’s first question.

BotFather. Copy the token in the last message. This sample is not a real token.

/newbot

Alright, a new bot. What should it be called?

Family Network

Good. Now a username that ends in bot.

FamilyNetworkBot

Done. Use this token:
123456789:AA_example_not_a_real_token

Your Telegram ID, from @userinfobot

Search for @userinfobot, press Start, and copy the number it calls your Id. That number is the installer’s second question. It is not your phone number.

userinfobot. Copy the Id. The number below is an example.

Start

Id: 100000001

If the installer also shows a detected address for family devices, press Enter to keep it, or type the IPv4 you copied if that address is the one they should use.

What success looks like

The installer ends with one line you can read. The name after @ is the bot you just created. Open that bot in Telegram and press /start. You are the admin. From there you can invite the family.

If something goes wrong

Permission denied

The password or the user was not accepted. Connect as root: ssh root@YOUR_IP. Type the password again. Remember that it stays invisible. If you added an SSH key and left the password empty, use that key, or set a password in the provider’s page and try again.

Connection timed out

The terminal waited and nothing answered. Check that you copied the IPv4, not some other number. Wait one minute if the server was still starting. In the provider’s page, make sure SSH on port 22 is allowed, then run the ssh line again.

The token was rejected

Go back to @BotFather and copy the token again, the whole line, with no spaces added. Then run the install line again. You do not need a new server.

I forgot my Telegram ID

Open @userinfobot and press Start. Use the Id number it shows. Then run the install line again.

How to run it again

Connect with ssh the same way, paste the same install line, and press Enter. An update keeps the keys and the database.

How to uninstall

On the server, run sudo bash /opt/familyvpn/uninstall.sh. It asks you to confirm, then removes the bot, the keys, and the database.