Skip to content

YianAndCode/github-deploy-keys-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Deploy Keys Manager

English | 中文

What is

When you use deploy key to deploy multiple repositories on one server, you will need to generate a dedicated key pair for each one (GitHub does not allow you to reuse a deploy key for multiple repositories), GitHub Deploy Keys Manager (I call it gdkm below) can help you manage your deploy keys easily.

GitHub Docs about Deploy keys

Usage

Install

Build from source

git clone https://github.com/YianAndCode/github-deploy-keys-manager.git
cd github-deploy-keys-manager
make

Basic use

./bin/gdkm -repo={YOUR_REPO_URL}
# e.g. ./bin/gdkm -repo=git@github.com:YianAndCode/github-deploy-keys-manager.git

After you excuting the command above, the key pair will be generated and stored in $HOME/.ssh/deploy/ by default.

If you want to specify key path, you can pass the path through -key-path=:

./bin/gdkm -repo={YOUR_REPO_URL} -key-path=/path/to/save/key

TODO:

  • Modify ssh_config file automatically

About

GitHub deploy keys manager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published