GitHub SSH setup

@codify/github·Codify official·v1.0.0·Updated yesterday

Get your Mac or Linux machine talking to GitHub over SSH, then pull down all your repos in one go.

0 appliesmacOS · Linux
Apply with CodifyCustomize a copy

Opens the template in the Codify dashboard. Applying doesn't create a setup; customizing makes a private copy you can edit.

Or from your terminal, with the Codify CLI
codify apply @codify/github

Configuration

The exact file codify apply uses. Copy it into your own codify.jsonc, or download it.

codify.jsonc53 lines · 865 B
[
{
"type": "ssh-key",
"passphrase": ""
},
{
"type": "ssh-config",
"hosts": [
{
"Host": "github.com",
"AddKeysToAgent": true,
"UseKeychain": true,
"IdentityFile": "~/.ssh/id_ed25519",
"IgnoreUnknown": "UseKeychain"
}
]
},
{
"type": "ssh-add",
"path": "~/.ssh/id_ed25519",
"appleUseKeychain": true,
"os": [
"macOS"
],
"dependsOn": [
"ssh-config"
]
},
{
"type": "ssh-add",
"path": "~/.ssh/id_ed25519",
"os": [
"linux"
],
"dependsOn": [
"ssh-config"
]
},
{
"type": "wait-github-ssh-key",
"dependsOn": [
"ssh-config"
]
},
{
"type": "git-repositories",
"parentDirectory": "~/projects",
"repositories": [
"<Replace me here!>",
"<Replace me here!>"
]
}
]
GitHub SSH setup template | Codify