Every change to rcert.in reaches the server the same way. A small script on our Windows PC asks the server for a fingerprint of each file, compares it with our copy, and sends only the files that differ, over SSH. No FTP, no File Manager. A typical update takes about a second: the one that published our Hostinger review sent 7 files in 0.8 seconds, while 337 others already matched.
This guide shows the same method as a few PowerShell commands you can run yourself, with nothing to install, and then the extra checks our script makes. It needs SSH, which Hostinger includes with its Premium web hosting plans and higher. For what our plan costs and how its backups work, see our Hostinger review.
How it works
A SHA-256 hash is a 64-character fingerprint of a file's contents: change one letter in the file and the fingerprint changes completely. So instead of comparing dates or sizes, which can mislead, we compare fingerprints:
- The server lists the fingerprint of every file in the site's folder.
- Your PC works out its own fingerprints and keeps the files whose fingerprint differs, or that the server doesn't have yet.
- Those files go up in one tar archive, which the server unpacks in place.
- Comparing again should then find nothing left to send.
Files that exist only on the server, such as images your visitors upload, are never touched: the list of files to send only ever comes from your PC.
On Linux or a Mac, rsync does this job, and Hostinger's help pages show how to use it. Windows doesn't come with rsync, but Windows 11 does come with ssh, scp and tar, and that's all this method needs.
One-time setup
You need your site's files on your PC, in the same layout as public_html on the server; here, C:\sites\example.com\public_html. In the commands below, replace example.com with your domain, u123456789 with your Hostinger username and SERVER_IP with your server's IP address.
- Turn on SSH. In hPanel, open Advanced → SSH Access and enable it. That page shows the IP address, port and username to use. Hostinger's shared hosting uses port 65002.
- Make a key, so that you don't type a password every time. In PowerShell:
ssh-keygen -t ed25519 -f "$HOME\.ssh\hostinger" Get-Content "$HOME\.ssh\hostinger.pub" | Set-Clipboardssh-keygenasks for a passphrase. One protects the key if your PC is lost, but ssh then asks for it each time. The second line copies the public key: add it as an SSH key on hPanel's SSH Access page. The other file,hostingerwithout.pub, is your private key, and it never leaves your PC. - Give the server a short name. Open ssh's settings file with
notepad "$HOME\.ssh\config"and add:
From now on,Host mysite HostName SERVER_IP Port 65002 User u123456789 IdentityFile ~/.ssh/hostingermysitestands for all of that insshandscp. - Connect once with
ssh mysite. The first time, ssh shows the server's fingerprint and asks whether to trust it. Typeyesonly if it matches the one on hPanel's SSH Access page. Then typeexit.
Step 1: find what changed
Open PowerShell in your local copy of the site (cd C:\sites\example.com\public_html). First, get the server's fingerprints:
$server = ssh mysite "cd domains/example.com/public_html && find . -type f -exec sha256sum {} +"
$server.Count
The count is the number of files on the server. If it shows 0, or an error, fix the connection before going on: without a list from the server, every file would look new.
Each line from sha256sum is a fingerprint, two spaces and a path. Now compare them with your files:
$remote = @{}
foreach ($line in $server) { $remote[$line.Substring(66)] = $line.Substring(0, 64) }
$root = (Get-Location).Path
$changed = Get-ChildItem -Recurse -File | ForEach-Object {
$path = $_.FullName.Substring($root.Length + 1).Replace('\', '/')
$hash = (Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash.ToLower()
if ($remote["./$path"] -ne $hash) { $path }
}
$changed
The last line lists the files to send, changed and new. Read the list before going on. If a file must never go up, such as a settings file with a password, skip it with a line like if ($path -like 'config/*') { return } just after the $path = line.
Step 2: send the changes
tar -cf changes.tar $changed
scp changes.tar mysite:
ssh mysite "umask 022 && tar -xf changes.tar -C domains/example.com/public_html && rm changes.tar"
Remove-Item changes.tar
- The first line packs the changed files into one archive, keeping their folders.
scpcopies it to your home folder on the server: the colon at the end means home.- The third line unpacks it into
public_html, replacing the old copies and making any new folders, then deletes the archive.umask 022makes the files readable by the web server but writable only by you (644 for files, 755 for folders). - The last line deletes the archive on your PC.
If Step 1 listed nothing, there's nothing to send, and tar will say so.
Step 3: check that it arrived
Run Step 1 again. This time $changed should print nothing: every file on your PC matches the server's copy. Then open the pages you changed in your browser.
Changed a stylesheet or a script? Visitors' browsers keep CSS and JavaScript files for a while, so they may go on seeing the old one. We add a version to each link, such as site.css?v=20261012, and change it whenever the file changes, so browsers fetch the new copy.
What our script adds
Our own script, written in PHP, does the same three steps, with one SSH connection for each, plus a few safeguards:
- A list of files it never sends: the server's own settings file with the database password, the files the site writes on the server (uploads and logs), our tests, and Windows clutter such as
Thumbs.db. - A dry run: it can list what it would send without sending anything, and it asks before uploading.
- A syntax check first: it checks every PHP file it is about to send with
php -l, and stops if one fails, so a typo can't take the site down. - Code before pages: our code lives in a private folder beside
public_html, and it goes up first, so a new page never calls code the server doesn't have yet. - A check of the result: after unpacking, the server reports the fingerprint of each file it wrote, and the script says "Done" only if every one matches.
- No deleting by itself: it can list the files that exist only on the server. Removing one moves it into a dated trash folder beside
public_html, off the site, where hPanel's File Manager can put it back.
Frequently asked questions
Does this delete anything on the server?
No. The archive only adds files or replaces them. Files that exist only on the server stay as they are.
Which Hostinger plans have SSH?
Hostinger says SSH access is available with Premium web hosting plans or greater. You switch it on under Advanced → SSH Access in hPanel.
Can I use rsync instead?
On Linux or a Mac, yes: Hostinger's rsync guide shows the commands, with port 65002. Windows doesn't include rsync, which is why this guide uses ssh, scp and tar.
Why not just use File Manager?
For one file, it's fine. With more, it's easy to miss one or upload the wrong copy, and nothing tells you afterwards whether the server's files match yours. Comparing fingerprints does.
Commands tested in Windows PowerShell 5.1 on Windows 11. The server side uses the same tools our script runs on our Hostinger plan: find, sha256sum and tar. Hostinger's details were checked against its help pages on 30 November 2026.