In this tutorial we walk you through setting up a VPN server with **WireGuard** on your VPS.

A virtual private network (VPN) offers significant advantages: it encrypts the information transmitted over public networks (even if someone intercepts the communication, the data remains unreadable) and lets you browse with the server's IP, for example to access geo-restricted content.

WireGuard is a state-of-the-art VPN technology that stands out for its **simplicity, security and speed**. Let's get started!

## Step 1: Order the VPS

Head to [ginernet.com/es/vps](https://ginernet.com/es/vps/) and choose the plan that best fits your needs. For this tutorial you can pick the **cheapest plan**: CPU and RAM are not critical for a VPN server.

:::tip
Keep the **monthly transfer limit** in mind when selecting your plan. In general, 1 TB per month is enough for most users.
:::

Once the order is complete, you will receive the access details of your VPS by e-mail: the IP address and the login credentials.

## Step 2: Connect over SSH

To connect over SSH from Windows you can use [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html) (on macOS and Linux, simply run `ssh root@your-VPS-IP` in a terminal).

Open PuTTY, enter your VPS IP and click **"Open"**. You can save the session so you do not have to type the IP every time.

![PuTTY: enter the VPS IP and click Open](/api/help/media/ca5c8d71-1122-4300-a31b-453d09203e81)

The first time you connect, PuTTY will show the server's [fingerprint](https://en.wikipedia.org/wiki/Public_key_fingerprint). Accept it by clicking **Yes**.

![Server fingerprint prompt on first connection](/api/help/media/d9ace808-6315-4ff8-93ec-5b71e9dcf63c)

You will then be asked for the credentials: user **root** and the password you received by e-mail when the server was installed.

:::info
If you copied the password, paste it by **right-clicking** on the PuTTY window and pressing Enter. It is normal not to see anything on screen while typing the password.
:::

![Logging in as root in the PuTTY console](/api/help/media/bffc0d34-6472-4038-9a84-f0a98f473cbd)

If the details are correct, you are in and can start running commands. To end the session, type `exit`.

Here is a cheat sheet of useful SSH commands:

![Cheat sheet of common SSH commands](/api/help/media/11e690b4-016a-411b-950f-018d42dd7266)

## Step 3: Install the WireGuard server

While connected over SSH, run this command to download and launch the WireGuard install script:

```bash
wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
```

Follow the on-screen instructions to configure WireGuard. When the installation finishes, you will see the connection details (and you can generate a configuration file or QR code for each client).

## Step 4: Connect to the VPN

With the server ready, it is time to connect from your devices. Download the official WireGuard client for your operating system from [wireguard.com/install](https://www.wireguard.com/install/) and follow the platform-specific instructions.

Import the configuration generated in the previous step, start the VPN connection and that's it! You can now enjoy a secure, private connection through your own WireGuard VPN server.