Skip to content
Cryptography
ASD ISMISM-0485

ASD ISM 0485 Use public key authentication for SSH access

What it says

Public key-based authentication is used for SSH connections.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Authenticate every SSH connection with a key pair (public key-based authentication), never with a password alone.

SSH connections must use public key-based authentication. The person or job connecting proves its identity with a private key it keeps secret, which the server checks against the matching public key it holds. Logging on with a password alone, or by any other method without a key, does not meet this. It applies to people and automated jobs, and to every SSH server, including network devices. ISM-1449 then requires each private key to be protected with a password or a key encryption key.

Why it matters

Password logons over SSH can be attacked by trying password after password until one works, and exposed SSH servers face this routinely. A private key cannot practically be guessed, so requiring keys removes that brute-force route.

How to implement

  1. Give every person and automated job its own key pair.

    Generate keys with an algorithm and size the cryptographic controls permit, not whatever the key generator defaults to: only AACAs (ASD-Approved Cryptographic Algorithms) or high assurance algorithms (ISM-0471), with minimum sizes for RSA (ISM-0476, ISM-1765) and ECDSA (ISM-0475, ISM-1763, ISM-1764).

  2. Manage which public keys each account trusts.

    Keep public keys in a managed source, such as configuration management, a directory or an SSH certificate authority, rather than files edited by hand, so each key traces to a person or job and can be removed. Certificate-based SSH logons are still public key-based.

  3. Turn off password logons on every SSH server.

    Confirm key logons work first, so administrators are not locked out. Then set AuthenticationMethods so every logon includes publickey, set PasswordAuthentication no and KbdInteractiveAuthentication no unless a second factor after the key needs it, and check the result with the daemon's test mode (sshd -T).

  4. Handle devices and services you cannot change.

    On network devices and appliances, use the vendor's key authentication setting and turn off SSH password logons. For a provider's server that offers only passwords, ask the provider to enable keys; until it does, those connections do not meet this control, so record a shortfall.

Keep it running

Remove a person's or job's public keys from every server when they no longer need access, as ISM-2145 and ISM-2146 require for credentials. Recheck that password logons stay off after SSH upgrades, image changes and new device builds.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    The effective authentication settings from a sample of SSH servers and network devices, drawn from a network scan rather than the server list.

    Look at

    Which authentication methods each one accepts.

    Good evidence

    Every sampled server requires public key authentication for every logon, and none accepts a password or keyboard-interactive logon without a key.

  2. Check 2 of 3What an auditor asks for

    Ask for

    A logon attempt with a valid username and password but no key, against each sampled server.

    Look at

    Whether a password prompt appears and whether a session opens.

    Good evidence

    No session opens without the key, and no server offers a password prompt in place of it.

  3. Check 3 of 3What an auditor asks for

    Ask for

    SSH authentication logs from the sampled servers for a recent period.

    Look at

    The method recorded for each accepted logon and, where a second factor follows the key, the partial key success logged before it, which appears only at LogLevel VERBOSE.

    Good evidence

    Every accepted logon in the period includes public key or certificate authentication, logged as the accepted method or as a partial success just before a second factor.

Mappings

Closest match in ISO/IEC 27001: A.5.17, Authentication information, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

  • A.5.17Authentication informationPartially meets
  • A.8.5Secure authenticationPartially meets

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.