Skip to main content

One post tagged with "GitHub"

View All Tags

Clone Using GitHub Deploy Keys

When cloning repositories on remote servers, it is recommended not to use your personal credentials, as this makes all your repositories accessible to anyone with access to the server.

Instead, use GitHub Deploy Keys to clone the repositories from GitHub.

warning

Using a separate GitHub account ("machine user") for cloning can also lead to security issues if not managed properly. Using deploy keys is a better alternative.

Follow these steps to clone a repository from GitHub using deploy keys: