SSH Public Key Authentication

Password authentication is known as less secure. However, it is the only authentication method for SZ remote administration via SSH. Public key authentication can provide cryptographic strength that even an extremely long and complex password cannot offer.

SSH Public Key Authentication

This feature focuses on the SSH server on SZ/vSZ and this is a generic feature. No matter what the FIPS mode is, the SZ supports the SSH public key authentication. User "admin" can login to SZ Web GUI to configure up to 10 SSH public keys and configure the SZ to use

  • Public key and password authentications (multi-factor) : admin login with this combination has to pass public key and password authentications. SSH server authenticates the user with public key and follow by password. If user fails in public key or password authentication, the user is not authenticated and the connection breaks.
  • Public key authentication : Admin login by public key authentication only.
  • Public key or password authentication : Admin is authenticated by pubic key or password. User is authenticated either passing public key or password authentication.
  • Password authentication : Admin login by password authentication only.

Default AuthenticationMethod: SSH login to SZ will be ‘password’ authentication. before n after setup procedure.

Maximum Configurable Public Key: Only ‘admin’ user can configure up to 10 public keys for SSH public key authentication with key format validation.

Verification of Uploaded Public Key: When admin user trying to upload/configure the SSH public key, SZ will prompt a notification if the key is invalid or duplicated

Cluster Configuration: The public key authentication method and the public keys, the configurations must be synchronized to all the nodes in the cluster

Non-admin Accounts: non-admin user cannot configure the SSH authentication methods or public keys settings.

Weak Cryptographic Algorithms: The public key that were generated by weak cryptographic algorithms, like DSA or ED25519 or RSA1.

Uploaded Public Key Format: When admin user trying to upload the SSH authentication public keys, SZ will prompt an error notification if the uploaded public key is not in SSH-format. The structure is "<algorithm> <key> [<comment>]", where the <key> part of the format is encoded with Base64. Although the format is not a standard in the cryptography world, but it is commonly adopted by most of the cloud applications. The comment part of the SSH-format public key is optional.

Public Key Authentication Fail:When admin user login from SSH and public key authentication fail, the failure count will not be increased. SSH client may try a lot of private keys for authentication, therefore, the public key authentication failure will not increase the authentication failure count on SZ

Key Zeroization: Those uploaded/configured public keys must be zeroized when the SZ FIPS mode changes from enable to disable, vice versa.

Configuring SSH Authentication Method

  1. In the controller web interface, navigate to GUI Administration > Admin and Roles > Account Security and choose AAH auth method.

    Configuring SSH Authentication Method

  2. Uploading SSH Authentication Public Keys

    Navigate to GUI>> Administration>> Admins and Roles>> Administrator

    Choose ‘admin’ user and click on ‘Configure’.

    Uploading SSH Authentication Public Keys

  3. In ‘admin’ page navigate to ‘SSH Keys’ and click on Import button to upload the SSH Public Keys

    Edit Administrator Account: Admin

    Add Public Key

  4. Enter the public key in the "Key" Textbox.
  5. ECDSA based public Key

    ECDSA Based Public Key

  6. RSA based public Key

    RSA Based Public Key

  7. Uploaded Keys

    Uploaded Keys

  8. Click ‘OK’ button to the save the uploaded keys. SZ will ask the admin user re-authentication to save the keys.

    Password Confirmation for SSH Keys

    SSH from Clients to SZ using each of the SSH public key Authentication

    From any of the Linux machine user can generate RSA/ECDSA key pair [private n public]. Upload public key on SZ and use private key on the client from where SSH will be initiated towards SZ.

    Use below command to generate key pair

    1. ECDSAà ssh-keygen -t ecdsa -C "ECDSA_Keypair-10" -f ecdsa1

      Files will be

      1. ecdsa1 Private key use in client
      2. ecdsa1.pub Public key upload in SZ
    2. RSA > ssh-keygen -t rsa -C "RSA_Keypair-1" -f rsa1

      Files will be

      1. rsa1 Private key use in client
      2. rsa1.pub Public key upload in SZ

    Duplicate and Corrupt public keys Check during upload

    When admin user tries to upload the same/existing key GUI prompts an error dialogue

    Duplicate SSH Public Key

    Invalid SSH Public Key

Connecting to SZ using each of the methods from Linux Client

SSH Authentication Method Public Key and Password

SSH Authentication Method Public Key and Password

  1. Public key and Password: Set the Authentication method and upload the public key
    1. Connect a client using ECDSA key based.

      Connect a client using ECDSA key based

    2. Connect a client using RSA key based.

      Connect a client using RSA key based

  2. Public key and Password: Set the Authentication method and the public key is already uploaded.

    Authentication method and the public key is already uploaded

    1. Connect a client using public key based

      Authentication method and the public key is already uploaded

    2. Connect a client using password.

      Connect a Client Using Passwrod

  3. Public key: Set the Authentication method and the public key are already uploaded.

    Add Public Key Only

    1. Connect a client using public key based

      Connect a client using public key based

  4. Password: Set the Authentication method and the public key is already uploaded.

    Add Password Only

    1. Connect a client using password

      Connect a client using password