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

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