SSH Manager 1.2.0: expiring keys, deploy keys and new-IP login alerts

SSH Manager 1.2.0 rebuilds the SSH keys tab around the account and adds key expiry, from= address limits, git and rsync deploy keys, a server-wide key audit, and alerts for logins from new addresses.

14 Nov 2026 4 min read 43 views
SSH Manager 1.2.0: expiring keys, deploy keys and new-IP login alerts
Share

SSH keys tend to outlive the reason they were added. A contractor's key stays in authorized_keys years after the job, a CI runner holds a key with a full shell, and an old 1024-bit RSA key sits next to a modern one without anyone noticing. Cleaning this up by hand means reading authorized_keys files account by account. SSH Manager 1.2.0 gives you the tools to set limits on keys when you add them, and to find the ones that need attention.

A keys tab built around the account

The SSH keys tab no longer asks you to type a username. You pick a Linux account from a list that shows how many keys each has and whether its shell can log in. Its keys appear as a list with a name, key type and size, a strength badge and a SHA-256 fingerprint you can copy. Weak RSA keys (under 2048 bits) are flagged, and DSA keys are marked as refused by current OpenSSH.

Add public key and Generate key pair open as dialogs. The paste box checks the key as you type, refuses a private key, accepts several keys at once and lets you name them. A generated ed25519 private key is shown once, never stored, and cleared when the dialog closes. A short "How SSH key login works" guide shows the ssh command for the account with the server's port. Options a key already carries are kept when you change it.

Keys that expire, keys that only work from one address

Two OpenSSH options that are easy to forget are now part of the dialog and of Key options for existing keys:

  • Expiry. Set a date when adding a key or later. It is written as expiry-time in authorized_keys, so sshd itself stops accepting the key after that date. The date must be in the future and at most 10 years away.
  • Allowed addresses (from=). Limit a key to IP addresses, CIDR ranges or host name patterns, up to 10 entries, with ! to exclude. A CI runner's key, for example, can be limited to the runner's address. A list made only of exclusions is refused, because it would block the key everywhere.

Before a key runs out, the administrators and the account owner get a reminder. The check runs every 6 hours and sends at most one reminder per key per week; how many days ahead it warns is a setting (7 by default, 1 to 90).

Deploy keys for git and rsync

Machines often need SSH for one thing only: pulling a git repository, or syncing files for a backup. A deploy key is a new ed25519 key pair whose public key carries the restrict option (no terminal, no port forwarding) and a forced command:

  • git: the key may only run git-shell.
  • rsync: the key may only run rrsync into the account's home, optionally read-only.

You can give a deploy key an expiry too. The tool must exist on the server; if git-shell or rrsync is missing, the panel tells you which package to install (git or rsync). As with generated keys, the private key is shown once and not stored. Website owners can create deploy keys for their own account when their plan includes SSH access.

Key audit and new-address login alerts

Under Hardening, the key audit lists every key on the server that needs attention: weak RSA, DSA, unreadable, expired or expiring, with the Linux account and its panel user. Notify owner sends that user a notification asking them to generate a new ed25519 key, add it, and remove the old one.

SSH Manager also watches accepted logins. When an account logs in from an address it has not seen before, the administrators and the account's panel user get a warning with the address, the method and the time. The check runs every 5 minutes. The first run only learns the addresses already in the log, so you are not flooded with alerts on day one. If you do not want these alerts, they can be switched off in the settings.

What stays the same

The existing parts of SSH Manager are unchanged: the narrow sshd_config editor (PermitRootLogin, PasswordAuthentication, Port and a few others, with each change checked by sshd -t), Reload SSHD, login history, current sessions and ending a session. Pasted keys still cannot carry their own command= or other options; restrictions come only from the panel's own dialogs. Admins manage any Linux account's keys; a website owner manages only their own.

How to get it

SSH Manager 1.2.0 needs panel 1.4.30 or later. Install or update it from the Vinza Store; it appears in the sidebar under Security. A sensible first step after updating is to open Hardening, run the key audit, and set expiry dates on keys that belong to people or machines with a limited job. Before you turn off password login or change the port, make sure your key works and the new port is open in the firewall.