# 2. Configuring the Key9 Debian 12 Repo.

Once "gpg" is installed, execute the following commands to configure your system to use the Key9 Debian Repository. As  “root” , execute the following:

1. First,  download the public key and import it into your systems keyring.

`curl -SsL https://download.k9.io/k9-ssh/debian/bookworm/KEY.gpg | gpg --dearmour -o /usr/share/keyrings/k9-ssh.gpg`

2. Next,  add the Key9 repository to your system.

`echo "deb [signed-by=/usr/share/keyrings/k9-ssh.gpg] http://download.k9.io/k9-ssh/debian/bookworm ./" > /etc/apt/sources.list.d/k9.list`

3. Run "apt-get update" to retreive the Key9 packages avaliable.

`apt-get update`

4. Install the `k9-ssh` package.   Programs and data from this package will be stored in the `/opt/k9` directory.

`apt-get install k9-ssh`


---

# 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/key9-ssh-for-debian-12-bookworm-howto/2.-configuring-the-key9-debian-12-repo..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.
