Skip to content

Instantly share code, notes, and snippets.

FlorianBouron /
Last active April 6, 2023 16:55
How to configure multiple deploy keys for different private github repositories on the same computer

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 "" 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 / 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 / Set up GitHub push with SSH
Last active June 8, 2023 08:31 — forked from developius/
Set up GitHub push with SSH keys
View Set up GitHub push with SSH

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

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C ""