Skip to content

SSH Key Authority

SSH Key Authority (SKA) is a web application for managing SSH access to any number of servers. Users upload their public keys, administrators and server leaders decide who may log in to which account, and SKA writes the resulting key files to every server over SSH. Users and groups come from LDAP or Active Directory, so people who leave lose their access automatically.

This documentation covers the Msprg fork. It builds on Opera's original and the work of Leitwerk AG. It runs on PHP 8.2+ and is meant to be deployed with Docker.

How it works

flowchart LR
    LDAP[(LDAP / AD)] -- users and groups --> SKA[SKA web app]
    Users -- upload public keys --> SKA
    Leaders[Admins and server leaders] -- access rules --> SKA
    SKA -- sync over SSH as keys-sync --> S1[server: /var/local/keys-sync/<account>]
    S1 -- AuthorizedKeysFile --> sshd
  1. Users log in to SKA with their directory account and upload their public keys.
  2. Administrators add servers. Administrators and server leaders grant users, groups or other server accounts access to accounts on those servers.
  3. The sync daemon connects to each server as keys-sync and writes one key file per account into /var/local/keys-sync/. sshd is configured to read keys from there.
  4. When something changes (a key, a rule, a group membership in LDAP, a user leaving), the affected servers are synced again.

Where to start

What this fork adds

Compared with the original and the other public forks, this version adds:

  • a Troubleshoot access tool that explains why a login works or not, including the server's sshd configuration;
  • its own login page with sessions, so you no longer need HTTP Basic Auth in front of it;
  • the ability for administrators to add and delete other users' keys;
  • removal of all key files when a server is decommissioned;
  • an optional username variable in synced keys, so shell history on shared accounts can be traced back to a person;
  • group-inherited access shown on server pages;
  • a Docker image published for amd64 and arm64.