> For the complete documentation index, see [llms.txt](https://docs.k9.io/key9-identity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k9.io/key9-identity/ssh/installation-and-setup/rsa-password-protected-ssh-key/3.-enrolling-your-public-key-to-key9.md).

# 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>
