Next: Viewing Deployment History, Previous: About GitHub's APIs, Up: Overview [Index]
Learn different ways to manage SSH keys on your servers when you automate deployment scripts.
You can manage SSH keys on your servers when automating deployment scripts using:
Agent forwarding uses the same SSH keys that your local development computer uses.
ssh -A serverA 'bash -s' < deploy.sh
If you don’t want to use SSH keys, you can use HTTPS with OAuth tokens.
You can launch projects from a GitHub repository to your server by using a deploy key, which is an SSH key that grants access to a single repository.
If your server needs to access multiple repositories, you can create a new GitHub account and attach an SSH key that will be used exclusively for automation. Since this GitHub account won’t be used by a human, it’s called a "machine user"
You can add the machine user as:
Next: Viewing Deployment History, Previous: About GitHub's APIs, Up: Overview [Index]