Connecting to Your Server
Once your UpCloud server is running, you need to connect via SSH to run the VPN setup scripts.
Prerequisites
- Your server's IP address (from UpCloud dashboard)
- SSH key (
ssh-key-upcloud-vms.pem)
Connect via SSH
From Linux / macOS (Terminal)
ssh -i /path/to/ssh-key-upcloud-vms.pem root@YOUR_SERVER_IP
Replace /path/to/ssh-key-upcloud-vms.pem with the actual path to your .pem file, and YOUR_SERVER_IP with your server IP (e.g. 85.9.210.106).
From Windows
Option A: Windows Terminal / PowerShell (Windows 10+)
ssh -i C:\path\to\ssh-key-upcloud-vms.pem root@YOUR_SERVER_IP
Option B: PuTTY
- Download PuTTY
- PuTTY uses .ppk format (use the .ppk key)
- Enter your server IP as the host, port 22
First-Time Setup
When you connect for the first time, you may see:
The authenticity of host '...' can't be established.
Are you sure you want to continue connecting (yes/no)?
Type yes and press Enter.
Before method scripts, run this once:
curl -sL https://gitlab.com/freedom-for-iran/website/-/raw/main/scripts/initial_setup.sh | bash
This updates the system, installs vim, curl, git, and copies all VPN scripts to ~/scripts/.
Run Your VPN Script
After connecting, you'll see a shell prompt like:
root@vpn-1:~#
Run scripts from ~/scripts/ (e.g. ~/scripts/vless_reality.sh). See the VPN method guides:
Each guide shows which scripts to run and how to use the results.