Revoke an SSH key when a developer leaves, a device is lost or the private key may be exposed. Removing its authorization prevents new key-based authentication, while active sessions and other access methods need separate review.
IN THIS ARTICLE
Prepare for the change
Identify the key by its fingerprint and owner rather than its filename alone. Keep a verified alternative administrator access method available so you do not lock out the only authorised maintainer.
01 Revoke an old SSH key after a developer leaves
- Open SSH Access > Manage SSH Keys and locate the public key associated with the retired device or person.
- Use Manage and choose Deauthorize. Verify its authorization status changes.
- Remove the obsolete stored key entry when it is no longer needed, distinguishing public and private-key records where both exist.
- Test a fresh connection using the retired key if you control it. Review active sessions with support when immediate termination is required.
- Revoke separate FTP users, cPanel team identities, API tokens and application accounts associated with the same person. Rotate shared credentials they knew when the handover requires it.
Confirm the expected result
The old key should fail on a new authentication attempt, while the retained authorised maintainer can still connect. Record the revoked fingerprint and completion time.
If the change does not work
If access continues, verify the client did not fall back to another key or password. A key can also be authorised under a separate account or duplicated in an authorized-keys file, which requires review.
Does deleting a key file from my laptop revoke server access?
No. Other copies of the private key can still authenticate while the public key remains authorised. Revoke authorization on every relevant server and repository where the exposed key was trusted.