Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update managing-deploy-keys.md
  • Loading branch information
tarrenj authored Oct 13, 2020
commit 35d531354568151ebd2bb6d07114601057345119
6 changes: 3 additions & 3 deletions content/developers/overview/managing-deploy-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ GitHub does not allow users to reuse deploy keys across multiple repositories, s
###### Setup

1. Using your favorite text editor, open up the file at `~/.ssh/config`. If this file doesn't exist, you can create it by entering `touch ~/.ssh/config` in the terminal.
2. Assign a unique private key to each repo as done in the following example:
2. Create an alias for each repository that points to the git server and assignes the private key:
```
Host example.com-repo-0
Host github.com-repo-0
Hostname github.com
IdentityFile=/home/user/.ssh/repo-0_deploy_key

Expand All @@ -106,7 +106,7 @@ Host github.amrom.workers.dev-repo-2

###### Example Usage

To clone a repository with a unique Deploy Key, use the appropriate host defined in the `~/.ssh/config` file as in the following example:
To clone a repository with a unique Deploy Key, use the the alias as defined in the `~/.ssh/config`:

```
git clone [email protected]:github-user/repo-1.git
Expand Down