# 3. Enrolling your public key to Key9

The RSA key generated will be stored in your home directory in a directory named `.ssh`&#x20;

You will want to copy the contents of the `id_rsa.pub` file to Key9.   If you are working on MacOS, Linux, etc. simple type:

`cat $HOME/.ssh/id_rsa.pub`

On Windows,  type:

`type %USERPROFILE%.ssh\id_rsa.pub`

Copy the contents of this file.&#x20;

Login into Key9 and in the top right corner will be your name with a “pull down” menu option.  Pull that down and go to “My Profile”.  Once in your profile,  select “Add SSH Key” (right of “SSH Keys”).&#x20;

Give your new key a name and copy/paste the public key.

<figure><img src="/files/uK1zi3z5n9GJbnKu6hJg" alt=""><figcaption><p>Copying public key to Key9</p></figcaption></figure>


---

# 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.k9.io/key9-identity/ssh/installation-and-setup/rsa-password-protected-ssh-key/3.-enrolling-your-public-key-to-key9.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.
