# Access private Repositories

## 1. Give us a key of yours

We need a public SSH key that is not already used with github.\
\
Github does not accept keys that are already used with github. So you may have to create an additional key. Here an example on how to do this, tested under Linux:

```
ssh-keygen -f ~/.ssh/mykey

cat ~/.ssh/mykey.pub
```

The last command then outputs the line that you need to send to us. Encrypted communication is not needed for that, as this is intended as the publicly known part of the key. Hence the .`pub` in the filename.

## 2. Use the key to clone and update the repository

After we confirmed to have granted access to your key, you may then clone some of our private repositories like this:

(Example: webfrontend repository. Name contains easydb for historical reasons)

```
GIT_SSH_COMMAND='ssh -i ~/.ssh/mykey' git clone git@github.com:programmfabrik/easydb-webfrontend.git
```

To be able to pull updates in the future, configure git to continue to use the same key for this clone:

```
cd easydb-webfrontend

git config core.sshCommand "ssh -i ~/.ssh/mykey"
```


---

# 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.fylr.io/for-developers/access-private-repositories.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.
