# Using private github repositories

Product: Marketplace Offerings
Source: https://docs.fortytwo.io/marketplace-offerings/managed-azure-kubernetes-service/getting-started/6.%20Using%20private%20github%20repositories/

## Overview

This guide will help you set up access to a private GitHub repository in Argo CD for managing your applications.

:::note
Please continue to the next step if you are using a public repository - [7. Deploy your workloads](https://docs.fortytwo.io/marketplace-offerings/managed-azure-kubernetes-service/getting-started/7.%20Deploy%20workloads/)

Dont have any repository but still want to test the deployment process?

You can use the following public [sample repository](https://github.com/fortytwoservices/sampleapps).
:::

## Configure access to private github repository

::::steps
### Navigate to Argo CD UI

Open the Argo CD UI in your web browser.

### Open Settings

Go to the `Settings` section in the left menu.

### Connect to Repository

1. Click on `Repositories`.
2. Choose `Connect Repo`.
3. Keep the default setting of `Via SSH` in the connection method dropdown.
4. Select the `default` project.
5. Paste your Github Repository URL into the `Repository URL` field. Eg. `https://github.com/fortytwoservices/sampleapps.git`
6. In the `SSH private key data` field, paste your SSH private key. This key is generated in your GitHub repository settings.

:::info
Not sure where to find or how to create a Github SSH Key? Check out the docs: [GitHub SSH Key Setup](https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh).
:::
::::

## Conclusion

You have now configured Argo CD to access a private GitHub repository, enabling you to manage applications hosted in that repository.

## Next step

- [Deploy your workloads](https://docs.fortytwo.io/marketplace-offerings/managed-azure-kubernetes-service/getting-started/7.%20Deploy%20workloads/)
