Create VM for AWS EC2
Create Ubuntu server with public IPv4 inside your own AWS EC2 account. Follow di console steps, connect from Mobile SSH, then install wg-easy as separate work.
These instructions dey use provider console. Di published VPN Setup plugin dey combine cloud creation, wg-easy installation and client import for compatible Android builds. You fit still create VM here and use im console/existing-server path, or install manually. Console setup no need cloud API login details for Mobile SSH. AWS EC2 provisioning for VPN Setup still na console-only option; we never establish equivalent iOS automation.
Check which plugins dey availableOpen di provider console — AWS EC2
Before you start
- Activate billing and check di region limits for VMs, disks and public IPs. Review di price wey dem display before you create resources; no assume say free tier or any particular plan dey available.
- For this setup, use Ubuntu 24.04 LTS with at least 1 GB RAM and 20 GB storage, or di provider minimum if e bigger. Make di CPU architecture match di image. Na this guide baseline be this, no be minimum wey every wg-easy setup must use.
- Keep your SSH private key inside Mobile SSH and upload only im public key. Ed25519 dey work with di current Android and iOS clients; di Lightsail steps explain im RSA import and di extra setup for iOS. Write your current public IPv4 with
/32after am as di SSH source, or use your approved management CIDR.
Network rules for this setup
- Allow incoming
TCP 22from di management CIDR. Remove wider SSH allow rules if you no need dem; adding narrow rule no automatically cancel wider one. Update di source when your phone public address change. - For di VPN step later, allow incoming
UDP 51820from VPN-client networks; clients wey dey move between networks fit need0.0.0.0/0. Set IPv6 rules with care if you enable IPv6. - Keep public
TCP 51821closed. Di wg-easy admin interface go bind to server loopback, and you go reach am through SSH forwarding. - Allow di outgoing DNS, package/container downloads and VPN traffic wey you need. Check both cloud and guest firewalls; preserve provider storage rules and essential ICMP rules.
Create di server and connect
-
Open EC2 for your AWS region and select Launch instance. Name di server and choose official Canonical Ubuntu Server 24.04 LTS AMI; check im publisher and architecture.
Provider instructions -
Select instance type with at least 1 GB RAM and matching architecture. Under Configure storage, choose at least 20 GB for di boot volume and review di estimated resource costs.
Provider instructions -
Under Key pair, select existing key or create/import Ed25519 key pair for Linux. Keep di matching private key available inside di app; AWS go install di public key for di instance.
Provider instructions -
For Network settings, choose public subnet. Im VPC need attached internet gateway and
Provider instructions0.0.0.0/0route to that gateway. Enable public IPv4; di static address step dey below. -
Create or select security group with di shared TCP 22 and UDP 51820 rules. Restrict SSH to your phone public IPv4, keep TCP 51821 closed, then select Launch instance and wait make e start running.
Provider instructions -
Open Network & Security → Elastic IPs → Allocate Elastic IP address. Then select Actions → Associate Elastic IP address and choose this instance and im primary private IP. Record di static IPv4; public IPv4 addresses get charges.
Provider instructions -
Save di server inside Mobile SSH
Open Servers, add server and fill these values. Choose di credential wey hold di matching private key. If di username wey you configure differ from this guide example, use your own.
- Host
- Di VM public IPv4 from di provider console
- Port
22- Username
ubuntu- Authentication
- Di matching SSH private-key credential
Get di SSH host-key fingerprint through di provider trusted console or boot logs and compare am before you trust di connection. For Android, turn off automatic acceptance of new identities if you wan review first use. Investigate changed-key warnings before you replace saved identity. SSH keys and identity checks
-
Install wg-easy as separate step
First confirm say di saved server dey open terminal and your login get root or sudo access. Then follow di shared wg-easy installation guide: Docker, pinned container, private administration through SSH, client creation and VPN checks. Di installer need SSH access, no be your cloud API secret.
Continue to di wg-easy installation steps
Optional API login details for VPN Setup
Skip this section for console setup. Di published VPN Setup plugin dey use these credentials for im ten supported cloud providers on compatible Android builds; im AWS adapter dey use Lightsail, no be EC2. EC2 credential notes only describe future automation. These permission lists na guidance; no be live-tested minimum policies for every provider or account.
For future provisioner only, create dedicated IAM identity wey cover instance creation, related AMI/network/disk/key resources, tags, Elastic IPs and cleanup. Existing read/start/stop permissions no enough. Add
Provider instructionsiam:PassRoleonly if you dey attach instance profile.Create or obtain that identity credentials and supply dem only through supported protected native settings. Prefer temporary credentials when e support dem, including their session token; no ever use root access keys. This console workflow no need API key inside Mobile SSH.
Provider instructions
Enter credentials only for protected native form; credential entry and approvals need screen. Native code dey authenticate with approved provider endpoints without passing cloud secrets to VM or plugin worker. No put secrets for voice prompts or terminal commands. Use narrowest supported scope, record expiry and revoke credentials wey you no need again.
Delete resources wey you no need again
Stopping di VM, canceling setup job or removing Mobile SSH profile no delete cloud resources and no guarantee say charges go stop. Keep resource IDs until you confirm deletion, and preserve resources wey no concern this setup.
Terminate di instance. Check Delete on termination and remove unwanted EBS volumes or snapshots wey remain separately.
Provider instructionsRelease di Elastic IP separately. Termination go disassociate di address, but e no release am or stop im charges.
Provider instructions