/hostinger:secure-vpsfrom hostinger
Hardens a Hostinger VPS (KVM plans) by configuring firewall groups, SSH key authentication, Monarx malware scanning, and backup verification. Proposes changes interactively and never locks the user out.
Ships in hostinger. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Baseline hardening for one server. Read and report first; each change is proposed with what it closes or removes and made only after the user agrees. The rule that matters most: never lock the user, or the agent, out of SSH. An account-wide review is audit-vps; a server that is already broken is troubleshoot-vps.
inputSchema that search returns before the first call of each operation. If a name below is rejected as unknown, search for what the step does (e.g. "firewall rule").search returns can be called. The backup schedule, the Monarx file list and the SSH and firewall resets live in hPanel; say where when a step needs them.multi-execute; values pass between steps as $steps.<i>.<path>. A batch stops at its first failure.Too Many Attempts is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. [VPS:9999] Request failed (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or vps_actions_list first, and tell the user what you found.[VPS:2047] or [VPS:2048], poll vps_virtual-machines_get until actions_lock is unlocked, then send the call again only if state allows it. 2048 names the wrong state and is also the answer while another action runs. On [VPS:2049] or [VPS:2053], tell the user and retry once later.vps_actions_get, waiting longer between checks, until state is success or error. An action that ends in error did not finish its change: read the server again and tell the user what failed. Firewall sync and delete answer Request accepted instead, and vps_ssh-keys_add-virtual-machine returns the server's key list; check the result with the matching read operation.vps_firewall_activate (within seconds it closes every port without an accept rule), vps_firewall_replace-all-rules-in-group, vps_firewall_delete-rule, vps_firewall_update-rule, vps_firewall_deactivate, vps_firewall_delete (deleting a group that is active on a server is accepted without an error and opens every port on every server that uses it within seconds), vps_ssh-keys_remove-virtual-machine, turning off password login, vps_monarx_install (locks the VPS while it installs), vps_monarx_uninstall, and vps_snapshots_create (replaces the snapshot).vps_ssh-keys_*; the vps_public-keys_* operations are deprecated.vps_virtual-machines_list; keep id, ipv4[0].address, state (must be running), template.name and firewall_group_id. .hostinger/vps.json in the project names the server from an earlier deploy.
One batch:
vps_firewall_get with firewall_group_id: rules (protocol, port, source, source_detail) and is_synced. vps_firewall_list and vps_virtual-machines_list show which other servers share the group.vps_ssh-keys_list-virtual-machine: the keys on root, including keys added on the server by hand. An empty list means root has no key; the SSH check below shows whether password login is on.vps_backups_list: the newest backup. Backups are weekly by default; on the weekly schedule the first one appears after a full 7-day cycle (on daily, within a day). The API cannot show or change the schedule.vps_monarx_scan-metrics, alone or last in the batch: [VPS:2042] Monarx is not installed means it is not installed, and the error stops the batch; otherwise it returns the malicious and compromised counts.From outside, which ports actually answer:
nc -zv -w 3 IP 21; nc -zv -w 3 IP 22; nc -zv -w 3 IP 25; nc -zv -w 3 IP 80; nc -zv -w 3 IP 443; nc -zv -w 3 IP 3306
nc -zv -w 3 IP 5432; nc -zv -w 3 IP 6379; nc -zv -w 3 IP 8080; nc -zv -w 3 IP 9200; nc -zv -w 3 IP 11211; nc -zv -w 3 IP 27017
Run each port as its own nc, with the IP written out: a loop or a shell variable makes Claude Code ask for approval every time, and macOS nc stops after the first port when given a list. Run the same commands against 192.0.2.1, a reserved address with no server, first. Any port that answers there is faked by the local network (a VPN or proxy; 80, 443 and 8080 are common), so judge it with curl instead. On macOS add -G 3 to nc; without it a port that drops traffic hangs for over a minute.
Over SSH, what listens and how SSH is set up:
ss -ltnp
sshd -T | grep -Ei '^(permitrootlogin|passwordauthentication|pubkeyauthentication) '
ufw status 2>/dev/null | head -3
srv123.hstgr.cloud (203.0.113.10) — Ubuntu 24.04
- No Hostinger firewall group; 22, 80, 443 and 3306 (MySQL) answer from anywhere
- Password login on, 1 SSH key on root
- Monarx: not installed
- Backups: last one 3 days ago (weekly)
Proposed:
1. Firewall group "web-srv123": SSH 22, HTTP 80, HTTPS 443 from any; 3306 closed (only this server's app uses it)
2. Turn off SSH password login (your key works — tested)
3. Install Monarx (free, detects only; the VPS is locked while it installs)
Every port that answers from outside must be either in the proposed rules or named as closing. Ask which services from ss -ltnp must stay reachable when it is not obvious. Wait for the user to agree, item by item if they prefer.
An active group drops all inbound traffic that no accept rule matches, on IPv4 and IPv6. A group with no rules is accepted too, and it closes every port, SSH included, within seconds of being activated, so create every accept rule before activating, the SSH rule first. Each server has at most one active group. It applies before the guest firewall: a Hostinger drop wins over an accept in ufw or iptables, and rules in both places must agree.
vps_firewall_create (name like web-<hostname>), then vps_firewall_create-rule per port — protocol: "SSH" with port: "22", "HTTP"/"80", "HTTPS"/"443", "TCP" with the app's port for anything else, source: "any" with source_detail: "any", or source: "custom" with an IP or CIDR for admin ports. Read the group back with vps_firewall_get to check that every agreed rule is there, then vps_firewall_activate with the group and the server, and once it succeeds, vps_firewall_sync-to-all-assigned-v-ms: a new group reads is_synced: false until it is synced, even though activation already applied its rules.vps_firewall_replace-all-rules-in-group with the complete new set and sync: true. A shared group changes every server using it — say which.vps_firewall_sync-to-all-assigned-v-ms after rule changes. It answers Request accepted, not an action; check vps_firewall_get until it shows is_synced: true. New connections follow the new rules within about two minutes; open connections are kept.vps_ssh-keys_add-virtual-machine with keys: ["<contents of the .pub file>"].ssh -o BatchMode=yes -o PasswordAuthentication=no root@IP true. Do not continue until it works.printf 'PasswordAuthentication no\nKbdInteractiveAuthentication no\n' > /etc/ssh/sshd_config.d/10-hardening.conf
sshd -t && (systemctl reload ssh 2>/dev/null || systemctl reload sshd)
sshd -T | grep -Ei '^(passwordauthentication|kbdinteractiveauthentication) '
The unit is ssh on Debian and Ubuntu and sshd on AlmaLinux, Rocky and CentOS. Both lines from sshd -T must say no. If either does not, this sshd_config does not read sshd_config.d/ (older images such as CentOS 7 and AlmaLinux 8) or sets the option earlier: set both options in /etc/ssh/sshd_config itself, reload, and check again. Test key login again from a new connection; if it fails, undo the change and reload from the open session. Tell the user the way back if they are ever locked out: hPanel → Settings → Reset SSH configuration restores the default sshd_config, and the hPanel browser terminal works without SSH.
vps_ssh-keys_list-virtual-machine: name them and ask. Remove only the ones the user identifies: vps_ssh-keys_remove-virtual-machine with keys: ["<the full public key line>"] (the OpenSSH key text, not a name or id), then confirm with vps_ssh-keys_list-virtual-machine. If the key is still listed, delete its line from /root/.ssh/authorized_keys over SSH. List again after the next reboot — a removed key can come back from cloud-init.vps_monarx_install installs the free Monarx agent, which detects malware in files but does not remove it; automatic removal needs a paid licence bought in hPanel. The VPS accepts no other actions while it installs; poll the action. Results and the list of infected files are in hPanel → Security → Malware Scanner; vps_monarx_scan-metrics gives only the counts. Propose cleaning only after the user has seen the file list.
vps_snapshots_create as a checkpoint. It replaces any existing snapshot and lasts one day — ask first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vps-hardening, hostinger, firewall, ssh-keys, malware-scanning
14 skills in this plugin
/audit-hostingAudit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website, SSL problems, broken or vulnerable WordPress installs, failed Node.js builds and vulnerable npm packages, databases and Agency Plan orders near their limits, and hosting plans about to lapse. Read-only; produces a prioritised to-do list and names the skill that fixes each item. Triggers: what do I have on Hostinger, audit my hosting, check all my websites, what needs attention, health check my sites, are any of my sites broken, which of my sites are insecure./audit-vpsAudit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU, memory, disk and monthly traffic use, firewall missing or not synced, SSH keys, Monarx malware counts, backup age, Docker Manager projects that are not healthy, old OpenVZ servers, and VPS plans about to lapse. Read-only; produces a prioritised to-do list and names the skill or hPanel page that fixes each item. Triggers: what VPS do I have, audit my servers, check all my VPS, which servers need attention, health check my VPS, are my servers secure, is my VPS backed up, when does my VPS expire./connect-domainConnect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to the site, point DNS at Hostinger without breaking existing email or verification records, install SSL, turn on the HTTPS redirect, and verify it resolves. Handles domains registered at Hostinger or elsewhere, moving a site off its free *.hostingersite.com subdomain, subdomains and aliases. Triggers: connect my domain, point my domain to my site, use my own domain, move off the free subdomain, add a subdomain, park a domain, add a domain alias, my domain is not working./deploy-to-hostingDeploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the right deploy for static sites, Node.js apps (Next.js, Nuxt, Express, Vite and similar), PHP apps and WordPress plugins or themes, sets up auto-deploy from GitHub or GitLab, manages Node.js environment variables and MySQL databases, and verifies the live site. Triggers: deploy this project, deploy to Hostinger, push my app live, redeploy, set up auto-deploy, connect my GitHub repo, add environment variables, my app needs a database, deploy my WordPress plugin or theme./deploy-to-vpsDeploy an existing project to a Hostinger VPS (KVM plans): sets up SSH key access, applies a Hostinger firewall group, runs Docker Compose projects through the Docker Manager where the server has it, or over SSH on any server, points a domain at the server, takes a snapshot before risky changes and verifies the result from outside. Triggers: deploy this to my VPS, run this docker-compose on my Hostinger server, put my app on the server, set up nginx and SSL on my VPS, point my domain to my VPS, redeploy on the VPS, add my SSH key to the VPS./hostinger-connectConnect your coding agent to your Hostinger account: signs in, adds the Hostinger MCP server to Claude Code, Codex, Cursor or VS Code (or gives the remote server URL for any other tool), and tells the user when it's ready. Only sets up the connection; for building, deploying or changing a site use the other Hostinger skills. Triggers: connect my agent to Hostinger, set up the Hostinger MCP server, add Hostinger to my coding tool.npx claudepluginhub hostinger/claude-plugin --plugin hostingerOther plugins' skills for the same job