Skip to content

Instantly share code, notes, and snippets.

@FlorianBouron
FlorianBouron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active April 6, 2023 16:55
How to configure multiple deploy keys for different private github repositories on the same computer
View multiple-deploy-keys-multiple-private-repos-github-ssh-config.md

This is probably a common issue for people who wants to deploy serveral repository on one VPS or VM.

This is not going to be rocket science.

The first step is to generate your first ssh key, for this type the following command line in your terminal: ssh-keygen -t rsa -b 4096 -C "your@email.com" When the command CLI is asking you if you want to use a passphrase you might want to press ENTER in order to don't have to type it everytime you will want to pull your repository.

Now copy the content of your public key and add it to Github in your first repository (Settings > Deploy keys). For example on debian it might be:

@jcheong0428
jcheong0428 / synchrony_tutorial.ipynb
Last active March 13, 2023 19:43
Synchrony tutorial notebook
View synchrony_tutorial.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active June 8, 2023 08:31 — forked from developius/README.md
Set up GitHub push with SSH keys
View Set up GitHub push with SSH keys.md

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"