> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/remote-repositories-in-cortex-xsoar/configure-a-remote-repository-on-the-production-machine.md).

# Configure a Remote Repository on the Production Machine

To work with the remote repositories, you must have at least two machines, one for your [development environment](/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/remote-repositories-in-cortex-xsoar/configure-a-remote-repository-on-a-development-machine.md) and the other for your production environment.

**Prerequisites**

Before configuring the remote repository, review the following list of prerequisites:

* Verify that the content that you want already exists in the remote repository. You cannot edit content in the production environment. All of the content is fully synchronized with the remote repository.

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>Any content that exists in the production environment, but not on the remote repository, will be deleted</p></div>
* When working with remote repositories and upgrading to v6.0, you must make sure to pull your classifiers and mappers from the dev environment before upgrading your production environment.

1. Add the **Content Repository** tab to Cortex XSOAR.
   1. Select Settings → ABOUT → Troubleshooting → **Add Server Configuration**.
   2. Add the following key and value.

      | Key                                  | Value      |
      | ------------------------------------ | ---------- |
      | **`ui.version.control.show.remote`** | **`true`** |
   3. Click **Save**.
2. **Define the repository**.
   1. Navigate to Settings → Advanced → **Content Repository**.
   2. Click the On/Off slider to enable the remote repositories.
   3. Define the machine as the production environment.
   4. In the Repository URL field, enter the URL. Cortex XSOAR automatically identifies if the URL is for HTTP, HTTPS, or SSH.

      For GitHub users - GitHub provides personal access tokens instead of usernames and passwords. Enter the GitHub token in the password field and leave the username field blank.

      For some repository vendors that use tokens, the token type is entered in the username field and the token is entered in the password field. Verify details with your vendor.

      <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>If you are using SSH, only RSA private keys are supported.</p></div>

      If your SSH connection uses a port other than port 22 (the default SSH port), you must include the ssh string and port number in the url. In the following example, we use port 20017:

      **`ssh://git@content.demisto.com:20017/~/my-project.git`**
   5. Select the active branch from which you pull content.
   6. Click **Save**.

      In the Discard server changes screen, you are presented with content that exists in your production environment, but does not exist on the remote repository. This includes integrations, and their instances and classifiers.

      ![remote-discard-server.png](/files/UPstcmeUJMSLf0gsjGZB)
   7. Type **`Discard`** in the relevant field and click **Continue**. All of the content that appears in this screen is discarded and permanently deleted.

      Content from the remote repository is installed. This can take several minutes depending on the amount of content in the remote repository and your hardware configuration. In addition, your custom content is automatically backed up to the Cortex XSOAR server any time you change one of the remote repository settings. The backup is located under `/var/lib/demisto/backups/content-backup-*.tar.gz.`
3. **Pull Content from the Remote Repository**

   Once you push content from the development machine to the remote repository, it is available as an update for the production environment.

   1. Check for updates.
   2. Click **Install Content**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/onboard-cortex-xsoar/remote-repositories-in-cortex-xsoar/configure-a-remote-repository-on-the-production-machine.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
