| Security

Who still has SSH access to your website?

Somewhere in your hosting account there is a list of everyone who can log in to the machine your website runs on. Most owners have never seen it. It is usually longer than they expect, and it usually contains at least one person who stopped working on the site years ago. This is how to read that list and shorten it, without touching a line of code.

When you hire somebody to build or fix your website, you give them a way in. That is not a mistake - they cannot do the work otherwise. The mistake is that nobody ever takes it back. The project ends, the invoice is paid, everybody moves on, and the way in stays exactly where it was.

We are not suggesting your old developer is going to attack you. Almost nobody does. The risk is duller than that and much more common: their laptop is stolen, or their own email is broken into, or they keep the key in a folder that gets backed up somewhere careless. Your site is then exposed through a door you forgot you had cut.

What SSH actually is, in one paragraph

Your website lives on a computer in a data centre. SSH - Secure Shell - is the standard way for a human to log in to that computer from somewhere else and type commands directly at it. It is not the same as logging in to WordPress, and it is not the same as your hosting control panel. It is a level below both of them. Somebody with SSH access does not need your WordPress password, because they can read, change or delete the files WordPress is made of, the database behind it, and the records of what happened.

That is why it is the first thing worth auditing and the last thing most people think of. A strong admin password protects the front door of the house. SSH is the floor.

Three levels of access to a website: the CMS login, the hosting control panel, and SSH underneath both
Three different doors, commonly confused. Changing your WordPress password does nothing to the one at the bottom.

Why the list grows and never shrinks

Access is granted in a hurry and removed never. Every one of these is an ordinary Tuesday afternoon, and every one of them leaves something behind:

  • The agency that built the site. Given full access on day one, because that is what building a site needs. Still has it three years and two redesigns later.
  • The freelancer who fixed one thing. Added a key to sort out a broken form in 2024, was paid, and was never removed because removing people is nobody’s job.
  • The developer who left that agency. Their key is on your server under the agency’s account. When they resigned, your site was not on anybody’s offboarding list.
  • A migration that was never cleaned up. Moving hosts often means temporary access for the new host’s team, and temporary has a way of becoming permanent.
  • Your own old laptop. The key you generated on the machine you sold or threw away is still trusted by the server, because the server has no way of knowing the laptop is gone.

None of that is negligence by anybody in particular. It is simply that adding access solves a problem today and removing it solves a problem that has not happened yet.

The five kinds of access worth checking

People say "who has access to my website" as if it were one thing. It is five, and they are kept in five different places. Check them in this order, because they go from most powerful to least:

01

The hosting account itself

The login that can delete everything, move the domain, or cancel the plan. Check who is listed as an owner and who has been invited as a sub-user. This one should be you, and almost nobody else.

02

SSH keys and SSH passwords

The list of keys trusted by the server, plus whether password login over SSH is switched on at all. This is the one nobody looks at.

03

FTP and SFTP accounts

Older sites often have several, created one per person or per job, with names like "designer" or "temp". Each is a working login until somebody deletes it.

04

Database users

Your site needs one. Some setups accumulate more - one from an old plugin, one from a migration tool, one from a developer’s test.

05

The CMS itself

WordPress administrators, Shopify staff accounts, and anything with the word "admin" on it. The easiest to check and the one most people stop at.

How to see your own list

Where this lives depends on your hosting panel. The two most common in our own client base are cPanel and Hostinger’s hPanel:

  • cPanel. Security → SSH Access → Manage SSH Keys. The page lists every public key the server knows about and shows whether each is authorised.
  • Hostinger hPanel. Advanced → SSH Access on shared and web hosting plans. The same page carries the on/off toggle and the list of keys. On a VPS it is under the server’s own Settings → SSH keys instead, and on agency plans under Advanced → Remote Access. Whether SSH is available at all depends on your plan tier, and the published guidance on which tiers include it does not agree with itself - so if the menu is missing, that is the likely reason rather than anything being broken.
  • Anything else. Search your panel for "SSH". If there is genuinely no such page, your site may be on a plan without SSH at all, which is one fewer thing to worry about - go and check the FTP accounts instead.

Underneath whichever panel you use, the trusted keys are kept in a single file on the server called ~/.ssh/authorized_keys. You do not need to open it. It is worth knowing the name, for the reason in the next section.

If you would rather not do this yourself. Send us the hosting and we will read the list, tell you who is on it and what each one can reach, and remove whatever you say to remove. It is usually a twenty-minute job and we do not charge for the reading part.

The trap: deauthorise before you delete

This is the part that catches people, and it is the reason a tidy-up can look done while the access is still live.

In cPanel, a key has two separate states: it exists in your account, and it is authorised to log in. Those are stored in two different places. Deleting a key from the list does not reliably remove it from authorized_keys, which is the file the server actually consults when somebody knocks. It is entirely possible to delete a key, see it vanish from the page, and leave the holder able to log in exactly as before.

So the order matters. Deauthorise first, then delete. And afterwards, ask your host to confirm the key is gone from authorized_keys - one short support message, and the only way to be sure.

The correct order for removing an SSH key: deauthorise, then delete, then confirm with the host
Deleting a key without deauthorising it can leave the holder able to log in while the panel shows nothing.

Keys beat passwords, and why

If SSH on your server accepts a password, then anybody on the internet can sit there and guess. They do, constantly and automatically, on every server with a public address - not because they have singled you out but because trying millions of addresses costs them almost nothing.

A key works differently. You hold a private half that never leaves your machine; the server holds the public half. There is nothing to guess, because the secret is never sent. Turning password login off and using keys only is the single change that removes the entire category of guessing attacks against SSH - and it is a setting, not a project.

  • Put a passphrase on the private key. Without one, the key is a single file - whoever ends up holding it is you, as far as the server is concerned.
  • One key per person, never a shared one. A shared key cannot be revoked for one person, and when something odd appears in the logs it cannot tell you who did it.
  • Ed25519 for anything new. It is the current default key type, short and well supported. If an existing key is an old 1024-bit RSA, replacing it is worth the ten minutes.
  • Restrict where logins can come from, if your host allows it. Limiting SSH to known addresses or a VPN turns a global problem into a local one.

One practical warning for whoever does the work: changing SSH settings while connected over SSH is how people lock themselves out of their own server. Keep a second session open until the new setting is proven. Your host can let you back in, but it is a bad afternoon.

What good looks like

You do not need a security programme. For an ordinary business website, this is the whole of it:

A list you have actually seen

You know who can log in, at every one of the five levels, because you looked once and wrote it down.

Nobody on it who has left

Access ends when the work ends. Removing it is a line on the project checklist, not a favour.

Keys, not passwords

Password login over SSH is off. Every key has a named owner and a passphrase.

A date in the calendar

Once a year, beside the domain renewal. Five minutes, and it is the only reason any of the above stays true.

The conversation to have with whoever built your site

If an agency or freelancer built your website, you are allowed to ask them this, and a good one will answer the same day. Four questions:

  1. Who at your end currently has access to my hosting and my server, by name?
  2. What happens to that access when one of them leaves your company?
  3. Is SSH password login switched off on my server, and does every key have an owner?
  4. When our work together ends, what is your process for removing it all?

Nobody should be offended by those. We are asked them and we answer them. If the reply is vague, or you are told it does not matter, that is itself the answer - and it is worth knowing before something goes wrong rather than after.

If you want to know what else is open on your site before you have that conversation, the free website audit checks the things visible from outside - HTTPS, security headers, the server software you are announcing to the world - in about twelve seconds. It cannot see your key list; nothing from outside can. But it will tell you whether the rest of the house is locked.

| Questions

Questions people ask about this

What is SSH access on a website?

SSH, or Secure Shell, is a way of logging in to the server your website runs on and typing commands directly at it. It sits below your WordPress login and below your hosting control panel: somebody with SSH access can read and change the files your site is made of, the database behind it, and the logs of what happened, without needing your site password at all.

How do I see who has SSH access to my server?

In cPanel it is Security then SSH Access then Manage SSH Keys. In Hostinger hPanel it is Advanced then SSH Access on shared plans, the server’s own Settings then SSH keys on a VPS, and Advanced then Remote Access on agency plans. Underneath any panel, the trusted keys live in a file called ~/.ssh/authorized_keys. Check your FTP accounts, database users, hosting sub-users and CMS admins at the same time - SSH is only one of five ways in.

Should I remove my old web developer’s access?

Yes, once the work has genuinely ended. It is not an accusation and it should not be taken as one - it is the same reason you take back a key from a contractor who has finished. If you may need them again, it is faster to re-add a key than to deal with the consequences of one going astray.

Is deleting an SSH key enough to revoke it?

Not always. In cPanel a key being listed and a key being authorised are two separate states, and deleting one from the list does not reliably remove it from the authorized_keys file that the server actually reads. Deauthorise first, then delete, then ask your host to confirm it is gone from authorized_keys.

Are SSH keys safer than a password?

Considerably, because there is nothing to guess. With a password, anyone on the internet can try millions of combinations against your server, and automated software does exactly that all day. With keys the secret never leaves your own machine. Turning password login off and using keys only removes that entire category of attack, and it is a setting rather than a project.

My hosting does not show an SSH page. Is something wrong?

Probably not. SSH is not included on every shared hosting plan, and the published guidance on which tiers include it disagrees between sources, so a missing menu usually means your plan does not offer it. That is one fewer thing to secure. Check your FTP accounts and CMS administrators instead.

How often should I review who has access?

Once a year for most business websites, and immediately whenever a working relationship ends or someone leaves the agency that looks after your site. Putting the yearly check next to your domain renewal is the simplest way to make sure it happens at all.

Not sure who can get into your site? We will read the list for you.

Send us the hosting. We will tell you who has access, what each one can reach, and remove whatever you say to remove.

WhatsApp us