Skip to content

Instantly share code, notes, and snippets.

View AndrewDavid's full-sized avatar
🌭
Making dumb content

Andrew-David J. AndrewDavid

🌭
Making dumb content
View GitHub Profile
@AndrewDavid
AndrewDavid / Multiple Deploy Keys in GitHub.md
Created November 27, 2019 15:34 — forked from mcfdn/Multiple Deploy Keys in GitHub.md
Using multiple GitHub deploy keys on a single server with a single user

Using multiple GitHub deploy keys on a single server with a single user

Within GitHub it is possible to set up two types of SSH key - account level SSH keys and and repository level SSH keys. These repository level SSH keys are known in GitHub as deploy keys.

Deploy keys are useful for deploying code because they do not rely on an individual user account, which is susceptible to change, to “store” the server keys.

There is, however, an ‘issue’ with using deploy keys; each key across all repositories on GitHub must be unique. No one key can be used more than once. This becomes a problem when deploying to repositories to the same server with the same user. If you create two keys, the SSH client will not know which key to use when connecting to GitHub.

One solution is to use an SSH config file to define which key to use in which situation. This isn’t as easy as it seems.. you might try something like this:

@AndrewDavid
AndrewDavid / slackthemes
Last active August 29, 2015 14:05
Slack Sidebar Themes
Terminal:
#101010,#000000,#FFFFFF,#000000,#A0A0A0,#FFFFFF,#00A400,#5858FE
MADSOFT:
#4A3A55,#3A2A45,#8A7A95,#FFFFFF,#2A1A35,#FFFFFF,#22CC88,#CC2288
Slack White:
#FFFFFF,#FFFFFF,#FFFFFF,#2288CC,#2288CC,#454449,#93CC93,#2288CC
Facebook?:
@AndrewDavid
AndrewDavid / keybase
Created May 10, 2014 01:21
Keybase Proof
### Keybase proof
I hereby claim:
* I am AndrewDavid on github.
* I am andrewdavidj (https://keybase.io/andrewdavidj) on keybase.
* I have a public key whose fingerprint is 2ED0 8E8F 2C56 FDBD 79F2 6D95 6B88 38AB 9D3A 460A
To claim this, I am signing this object: