For External Users SSH Public Keys

For External Users SSH Public Keys

For External Users: SSH Public Keys

Overview

This guide provides step-by-step instructions for external users to securely register, generate, and manage SSH public keys using CCS Key Management (Locksmith). Authentication is handled through CILogon, which supports multiple Identity Providers (IDPs). After registering your SSH public key, you will need to open a support ticket to complete the process. The same login also manages API keys for the CCS AI Inference Gateway; that side is documented at locksmith.ccs.uky.edu/ai-access-help and is not needed for SSH access.

Table of Contents

Prerequisites

Before you begin, ensure you have the following:

  • An account with a supported Identity Provider (IDP). See the list of supported IDPs in the next section.

  • An SSH client installed on your local machine (needed to connect to the cluster afterwards; not needed to create or upload a key, which the browser can do).

    • Linux and macOS: OpenSSH is typically pre-installed. Verify by running ssh -V in a terminal.

    • Windows: Install either OpenSSH for Windows or PuTTY.

  • An SSH key pair, or let Locksmith generate one in your browser. See Generating SSH Key Pairs if you need to create a new key pair.

Supported Identity Providers

CCS Key Management authenticates users through CILogon. The following Identity Providers are supported:

  • University of Kentucky (UKY)

  • ACCESS-CI

  • Other institutional IDPs federated through CILogon

Important Notes on IDP Selection

Warning: Choosing the correct Identity Provider is critical. Read the following guidance carefully before logging in.

  • University of Kentucky (UKY) users: You must select "University of Kentucky" as your IDP. Do not use any other provider.

  • Non-UKY institutional users: You are recommended to use your own institution's IDP if it is available through CILogon.

  • Users without an institutional IDP: If your institution is not listed, use ACCESS-CI as your IDP.

  • ACCESS users accessing KyRIC resources: You must select "ACCESS" as your IDP.

Note: Google, GitHub and ORCID logins are blocked. See Unsupported Identity Providers.

Logging In to CCS Key Management

Follow these steps to log in:

  1. Open a web browser and navigate to the CCS Key Management (Locksmith). One login covers both the SSH keys for the HPC clusters and the API keys for the CCS AI Inference Gateway; you do not need one to use the other. This guide is about SSH keys.

  2. On the login page, select your Identity Provider from the list. Refer to Important Notes on IDP Selection to choose the correct provider.

  3. Enter your credentials on the Identity Provider's authentication page.

  4. After successful authentication, you will be redirected to your dashboard, which shows one card for SSH keys and one for AI inference keys. Select Open on the SSH keys card.

CILogon asks which Identity Provider to use. University of Kentucky people pick University of Kentucky.

CILogon asks which Identity Provider to use. University of Kentucky people pick University of Kentucky.

The dashboard after logging in: an SSH keys card and an AI inference keys card.

Registering and Uploading an SSH Public Key

Security Reminder: Only upload your public key (the file ending in .pub, for example id_ed25519.pub). Never share or upload your private key. Keep your private key stored securely on your local machine.

Follow these steps to register your SSH public key:

  1. Log in by following the steps in Logging In to CCS Key Management.

  2. Go to https://locksmith.ccs.uky.edu/submit_key, or select the "Submit SSH Public Key" button on the SSH keys page. You can either paste a public key you already have, or have Locksmith generate a new key pair for you in your browser.

The upload form: choose a label, paste the single line from your .pub file, then select Submit Key.

  1. In the text field labeled for the SSH public key, paste the contents of your public key file. The key must begin with a supported key type prefix such as ssh-rsa or ssh-ed25519.

  2. Select the "Submit Key" button to submit your key.

  3. A confirmation message will be displayed indicating your key was uploaded successfully.

  4. After uploading your key, you must open a support ticket to complete the registration process. Navigate to the HPC User Support Request portal and create a new ticket indicating that you have uploaded your SSH public key.

Key Rotation and Expiry

SSH keys registered with Locksmith expire. This section explains when, what warning you get, and what to do about it.

How long a key lasts

Every key you upload is valid for 180 days from the day you upload it. Uploading a replacement restarts the clock.

Reminder emails

You will receive an automated reminder 30 days, 7 days and 1 day before your key expires, and one more if it lapses. These are sent from no-reply@uky.edu -- add that address to your safe-senders list so the warnings are not filtered into junk. Replies to it are not read; use the HPC User Support Request portal if you need help.

What happens when a key expires

An expired key stops being synchronized to the HPC clusters. If you have an allocation and an account on a cluster, you could lose access to that cluster until a new key is uploaded and processed. Because an administrator has to copy the new key across, rotate before the deadline rather than on it.

How to rotate

  1. Create a new key pair -- either let Locksmith generate one in your browser or use ssh-keygen as described in Generating SSH Key Pairs.

  2. Upload the new public key at https://locksmith.ccs.uky.edu/submit_key, choosing the same label as the key it replaces. The old key is retired automatically.

  3. Open a ticket at the HPC User Support Request portal so an administrator copies the new key to your cluster account.

Which keys are accepted

  • ssh-ed25519 -- recommended. Shorter and faster, and its fixed 256-bit size is stronger than RSA-2048.

  • ssh-rsa -- accepted at 3072 bits or larger. 4096 is a good choice.

  • RSA-1024, RSA-2048, DSA and ECDSA keys are not accepted.

You may register up to two keys at a time, each under its own label (Laptop, Desktop/Workstation, or Other), so you can keep working from a second machine while you rotate the first.

Reusing an old key is refused. Locksmith remembers the last 10 key fingerprints on your account, so a rotation must be a genuinely new key -- never re-upload the same file.

For step-by-step help at any time, see https://locksmith.ccs.uky.edu/ssh-keys-help.

Managing Your SSH Keys

Viewing Your Current Key

After logging in, open the SSH keys card on your dashboard. The SSH keys page lists every key you have registered (up to two, each under its own label) with its type, its expiry date and a badge saying whether it is active, expiring soon or expired. If no key has been uploaded, a message says so instead.

Deleting Your SSH Public Key

Warning: Deleting your SSH public key will prevent access to any systems that rely on it for authentication. Ensure you have an alternative means of access before proceeding.

Follow these steps to delete your SSH public key:

  1. Log in and open the SSH keys page.

  2. Under the key you want to remove, select its Delete button (it names the key's label).

  3. A confirmation prompt will appear. Confirm the deletion.

  4. A confirmation message will be displayed indicating the key was deleted successfully.

Updating Your Secondary Email Address

You can update your secondary email address from your dashboard.

  1. Log in.

  2. On the dashboard, locate the secondary email field under Your Account Details.

  3. Enter your new email address in the text input field.

  4. Select the "Update Email" button.

  5. A confirmation message will be displayed indicating the email was updated successfully.

Generating SSH Key Pairs

If you do not already have an SSH key pair, follow one of the procedures listed for your operating system. Each method generates a private key and a corresponding public key. You will upload only the public key to CCS Key Management. Ed25519 is the recommended type; RSA is accepted at 3072 bits or larger.

Generating a Key in Your Browser (No Software Needed)

Locksmith can create a key pair for you in your web browser. This is the easiest route if you are not comfortable at a command line, or you are on a machine without an SSH client.

Your private key is never sent to us. It is generated inside your own browser tab and stays on your computer. Locksmith only ever receives the public half. This also means nobody can recover the private key for you if you lose it.

  1. Go to https://locksmith.ccs.uky.edu/submit_key and choose Generate a new key pair for me, here in this browser.

  2. Choose Ed25519 (recommended) or RSA 4096, then select Generate key pair.

Choosing to generate a key pair in the browser, and selecting the key type.

  1. Download both files when prompted: the private key (no file extension) and the public key (ending .pub).

  2. Tick the confirmation box to say you have saved the private key. The upload button stays disabled until you do, because a private key that is not downloaded cannot be recovered.

After generating: download both files, then confirm you have saved the private key.

  1. Select Upload the generated public key.

  2. Move the private key into place and set its permissions -- see https://locksmith.ccs.uky.edu/ssh-keys-help for the exact commands on macOS, Linux and Windows.

  3. Open a ticket at the HPC User Support Request portal so an administrator copies your key to the cluster.

If you would rather create the key yourself, the command-line instructions below work equally well.

Linux and macOS

  1. Open a terminal application.

  2. Run the following command to generate an Ed25519 key pair (recommended; if something in your workflow cannot handle Ed25519, use ssh-keygen -t rsa -b 4096 instead):

    Command to generate an Ed25519 key pair

    ssh-keygen -t ed25519 -C "your_email@example.com"

    Replace your_email@example.com with your actual email address.

  3. When prompted for a file location, press Enter to accept the default location (~/.ssh/id_ed25519).

  4. When prompted, enter an optional passphrase for additional security, or press Enter to skip.

  5. The key pair is generated. Your public key is saved at ~/.ssh/id_ed25519.pub. Your private key is saved at ~/.ssh/id_ed25519.

  6. To view your public key for copying, run:

    Command to display public key

    cat ~/.ssh/id_ed25519.pub
  7. Copy the entire output. This is the value you will paste when uploading your key to CCS Key Management.

Windows Using Git Bash

  1. Download and install Git for Windows, which includes Git Bash.

  2. Launch the Git Bash application.

  3. Run the following command to generate an Ed25519 key pair (recommended; if something in your workflow cannot handle Ed25519, use ssh-keygen -t rsa -b 4096 instead):

    Command to generate an Ed25519 key pair in Git Bash

    ssh-keygen -t ed25519 -C "your_email@example.com"

    Replace your_email@example.com with your actual email address.

  4. When prompted for a file location, press Enter to accept the default location (/c/Users/your_username/.ssh/id_ed25519).

  5. When prompted, enter an optional passphrase for additional security, or press Enter to skip.

  6. The key pair is generated. Your public key is saved at /c/Users/your_username/.ssh/id_ed25519.pub. Your private key is saved at /c/Users/your_username/.ssh/id_ed25519.

  7. To view your public key for copying, run:

    Command to display public key in Git Bash

    cat ~/.ssh/id_ed25519.pub
  8. Copy the entire output. This is the value you will paste when uploading your key to CCS Key Management.

Windows Using PuTTYgen

  1. Download PuTTYgen from the official PuTTY website if it is not already installed.

  2. Launch the PuTTYgen application.

  3. In the "Parameters" section at the bottom of the PuTTYgen window, select EdDSA as the key type and leave the curve at Ed25519. (If something in your workflow cannot handle Ed25519, choose RSA and set the number of bits to 4096.)

  4. Select the "Generate" button.

  5. Move your mouse pointer over the blank area in the PuTTYgen window to generate randomness. Continue until the progress bar completes.

  6. Once generation is complete, the public key is displayed in the text area labeled "Public key for pasting into OpenSSH authorized_keys file". Copy this entire value. This is what you will paste when uploading your key to CCS Key Management.

  7. Select "Save private key" to save your private key to a secure location on your machine. You may optionally set a passphrase before saving.

  8. Do not upload a file saved with "Save public key": PuTTY writes it in a different format. The value to paste is the single line from the text area in the previous step.

Unsupported Identity Providers

Logins through Google, GitHub and ORCID are blocked, because those identities cannot be tied to an institution. University of Kentucky people must use the University of Kentucky provider; everyone else uses their own institution's provider or ACCESS-CI.

If you attempt to log in using an unsupported IDP, authentication will fail. Use one of the Supported Identity Providers listed in this guide instead.

Getting Support

If you need assistance with CCS Key Management, create a support ticket through the HPC User Support Request portal.

Include the following information in your ticket:

  • Your name and email address

  • The Identity Provider you used to log in

  • A description of the issue you encountered

Related Links

Center for Computational Sciences