> 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="https://2354768316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZbcN0W0VyihswJIdHDaE%2Fuploads%2Fq5vtqGQ0MYtqIHDoOPjD%2Fimage.png?alt=media&amp;token=da2bb290-2651-46b6-9819-01a7ff2cd056" alt=""><figcaption><p>Copying public key to Key9</p></figcaption></figure>
