# Install RPort on any virgin cloud VM

{% hint style="danger" %}
The following guide assumes you are going to install the RPort server on a virgin virtual machine, running Debian or Ubuntu on a public cloud.&#x20;

**✋ Do not use this guide for installing RPort on servers inside an intranet where NAT (network address translation) is used.**

To install RPort on a intranet host, follow this [guide](https://oss.rport.io/docs/#install-and-run-the-rport-server).
{% endhint %}

### Update your VM first

It's always a good habit to apply all pending updates before installing the application. Also, reboot the machine to have the latest kernel with all security updates running.

```
apt-get update && apt-get -y dist-upgrade && reboot
```

Log in again using SSH and make sure 👉 **you are the root user**.

### Install the RPort server

The installation of the RPort server consists of several steps. We compiled a handy script that does everything for you. 🪄 Fire it and let the magic begin.

```
curl https://get.openrport.io -o rport-install.sh
bash rport-install.sh
```

⏱️ The script needs approximately 2 minutes to finish. If all goes well, you will get a URL and a random password for the login to the graphical user interface.&#x20;

{% hint style="info" %}
💁 **Insider tip**

You can start the installation with your own FQDN, \
for example `bash rport-install.sh --fqdn rport.example.com`. \
The FQDN must exist and it must reolve to the public IP address of your server.

If you ommit the FQDN a random hostname of the \*.user.rport.io space will be created. You can [change it later](https://kb.openrport.io/getting-started/install-the-rport-server/broken-reference).
{% endhint %}

{% hint style="success" %}
You will be asked for your email address. **Your email address is required because two-factor authentication is enabled by default.** Tokens are sent via email. Your email address is stored only in the local database of your server.
{% endhint %}

👉 Point your browser to the URL of your RPort server and log in with the user `admin` and the randomly created password. Check your inbox and grab the token for the two-factor authentication.

### What's next?

After successfully starting your RPort server instance, you should

* 👉 [Connect your first client](https://kb.openrport.io/getting-started/install-the-rport-server/broken-reference)
* 👉 [Test the remote access](https://kb.openrport.io/getting-started/install-the-rport-server/broken-reference)
* 👉 Perform regular backups
