Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yianandcode/github-deploy-keys-manager
GitHub deploy keys manager
https://github.com/yianandcode/github-deploy-keys-manager
deployment github
Last synced: 3 days ago
JSON representation
GitHub deploy keys manager
- Host: GitHub
- URL: https://github.com/yianandcode/github-deploy-keys-manager
- Owner: YianAndCode
- Created: 2021-03-26T08:50:28.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-16T03:41:14.000Z (21 days ago)
- Last Synced: 2025-01-16T04:36:09.107Z (21 days ago)
- Topics: deployment, github
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Deploy Keys Manager
English | [中文](README_zh.md)
## 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](https://docs.github.com/en/developers/overview/managing-deploy-keys#using-multiple-repositories-on-one-server)
## Usage
### Install
Build from source
```bash
git clone https://github.com/YianAndCode/github-deploy-keys-manager.git
cd github-deploy-keys-manager
make
```### Basic use
```bash
./bin/gdkm -repo={YOUR_REPO_URL}
# e.g. ./bin/gdkm [email protected]: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=`:
```bash
./bin/gdkm -repo={YOUR_REPO_URL} -key-path=/path/to/save/key
```## TODO:
- [x] Modify ssh_config file automatically