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