---
updatedAt: 2026-11-10T16:03:27.000Z
agentTools:
  projectIndex: https://docs.sandflysecurity.com/llms.txt
---

# SSH Keys

The **SSH keys** page of SSH Investigation provides information that centers around SSH key data that is collected by Sandfly.

# Table View

The principal page offers search capabilities of textual fields and lists the SSH keys, whether discovered or manually added, in an easy-to-use table. By default, the **Hide Dead Keys** preset filter hides dead keys. To show them, clear that filter.

<Image align="center" alt="SSH Keys - Table" border={true} caption="SSH Keys - Table" title="SSH Keys - Table" src="https://files.readme.io/6dbbd6444e7c036a3fb51edea84f1e19e1b87b2c4fbdd21c201933b3f08affd1-key_investigation-datatable.png" />

Single-clicking a linked value or double-clicking a row of data, excluding the checkboxes and Action buttons, will open the Details page of the associated entry.

# Detail View

The **Summary** tab on the Details page provides an initial view of data on an individual SSH key.

<Image align="center" alt="SSH Keys - Summary Tab" border={true} caption="SSH Keys - Summary Tab" title="SSH Keys - Summary Tab" src="https://files.readme.io/fe0aed7d03d9b3cf34c305f23fdd66c5b0f4b1f90693e1426b07351cc1b37f30-key_investigation-summary.png" />

The Explorer area, found in the **Summary** tab and a larger, dedicated view under the **Visualization** tab, can expand and collapse its data and the area can be zoomed or moved around in order to follow the relationship between keys, users, and hosts. Below the Explorer is the **Key use timeline** section showing key quantities on the connected hosts over time.

Clicking the **Hosts & Key Entries**, **Users & Key Entries**, or **Zones** tab will provide a table of the respective data. On the **Zones** tab, the **Permitted** column shows whether the key is permitted in each zone. A key that is not permitted in a zone was found on a host in that zone, which is a zone violation.

<Image align="center" alt="SSH Keys - Hosts Tab" border={true} caption="SSH Keys - Hosts Tab" title="SSH Keys - Hosts Tab" src="https://files.readme.io/0a6e299eebb1c06625c84fc0c64cf36d4a363c2db59154ab6879a876ceb3fe03-key_investigation-hosts.png" />

# Manually Adding Keys

Normally, the keys listed on the **SSH keys** page and the **Tag workbench** are the keys Sandfly has found on hosts through scans that include the `recon_user_list_all` sandfly.

However, this means you can only tag or ban keys that are already on hosts. You may want to watch for known retired or malicious keys that are not currently on hosts and be alerted as soon as such a key shows up.

Or, you may wish to add a set of allowed keys to a Security Zone without first having to add them to the hosts – potentially generating nuisance alerts if you know you are adding new allowed keys to hosts in that zone due to key rotation, new employee hires, etc.

This feature lets you add keys to the system directly instead of having to discover them via scans.

To manually add keys, in the sidebar menu, select **SSH investigation** > **SSH keys**, and then use the option to add keys in the top-right corner.

<Image align="center" border={true} src="https://files.readme.io/4d1f48c6d74a7729da0755c629bc3b91a6057ef5d0ec2090d52e0d84347ec271-key_investigation-top_button_bar.png" className="border" />

The **Add SSH keys** form allows you to paste in SSH public keys, with one key per line. The entries may be copied directly from `authorized_keys` files, and Sandfly will parse out the key itself, or the entries may be just the key without the type and comment fields found in `authorized_keys` files. You may also use a combination of the two formats in a single operation.

<Image align="center" alt="A screenshot of the Add SSH Keys form" border={true} caption="Add SSH Keys Form" title="Add SSH Keys Form" src="https://files.readme.io/62d7bfd626863ef83e75f5e1e3e5b5a3f5a4779f9c85c8653724871ce7c4ebbd-key_investigation-form-add_ssh_keys.png" />

Any tags you enter in the **Add SSH keys** dialog will be added to the new keys, immediately allowing them in SSH Security Zones that permit the tags. If the key already exists in Sandfly, **the provided key tag(s) will be added to the existing key**.

Added keys can also be immediately banned simply by adding the **Banned** tag.

Keys which have been added manually, instead of discovered through scans, can be identified by the **First Seen** and **Last Seen** dates in the key list being "Never". If no scan finds a manually added key, it becomes a **Dead** key 14 days after it was added, and the default **Hide Dead Keys** preset filter hides it. To see the key, clear that filter.

<Image align="center" alt="A screenshot of manually entered keys that were never seen by Sandfly" border={true} caption="Never Seen Keys" title="Never Seen Keys" src="https://files.readme.io/4771bf5240c91877cc7c638934d64cccb543f2c8c2adc68c6ad13e9ce83dbde8-key_investigation-never_seen.png" />

When one of those keys is found on a host, the **First Seen** / **Last Seen** dates will be changed to real values and the key will be like any other key Sandfly discovers during scans.