# Import SSH Key-Value Pair

You can import SSH keys that have been generated through Unix-based shells such as BASH (Bourne Again Shell).

You can create SSH keys using the `ssh-keygen` utility.

Before you can import an SSH key-value pair, ensure that you have created the SSH key to import.

Refer to [auto$](https://github.com/platform9/pcd-docs-gitbook/blob/main/openstack/authentication-ssh-key-value-generation/README.md) for information about creating the SSH key.

You must be a self-service user or an administrator to perform this operation.

To import an SSH key-value pair, follow the steps given below.

1\. Log in to Clarity.

2\. Click Access and Security in the left panel.

3\. Click Import Key Pair seen on the top right corner in the SSH tab. If no key-value pairs have been created, you can click Create New Key.

4\. Enter the key pair name.

5\. Open the cloud-key.pub file for the key by using the vi editor or any other Linux-based editor.

6\. Copy the contents of the cloud-key.pub and paste them into the public key content field.

<figure><img src="/files/UCDe1ZFiZ5FKB9woj9iR" alt=""><figcaption></figcaption></figure>

7\. Click Import.

An SSH key-value pair is created successfully.

The SSH key-value pair can be associated with an environment for secure communication between the resources in the environment.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.platform9.com/managed-openstack/5.8/authentication-and-authorization/authentication-import-ssh-key-value-pair.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
