Hostinger Setup
Start by enabling SSH access in hPanel.
Enable SSH
- Log into hPanel
- Go to Hosting → Manage → SSH Access
- Turn SSH on
- Note these values:
- Host — your server IP
- Username — usually
uXXXXXXXXX - Port —
65002
Tip — Hostinger shared hosting uses
65002, not22.
What you need before continuing
- Hostinger account with SSH access enabled
- GitHub repository with Actions enabled
- A GitHub Environment for production (e.g.
production.your-app) - Local machine with
ssh-keygen
Create the GitHub Environment
- Go to GitHub → Repository → Settings → Environments
- Click New environment and name it (e.g.
production.your-app) - Add secrets under that environment — not at the repo level