GO key-master - developed by Anaconda1337
key-master is a simple command-line tool for managing SSH keys and associated Git configurations. It allows you to generate SSH keys, delete them, and set Git user information, all from the command line.
Before using key-master, ensure that you have Go (Golang) installed on your system. You can download and install Go from the official website: Go Downloads
- Clone the key-master repository to your local machine:
git clone github.com/anaconda1337/key-master
- Change to the key-master directory:
cd key-master
- Build the key-master binary:
go build
- Now you can run key-master from the command line:
./key-master
You can use key-master to generate SSH keys, either for a single profile or for all profiles defined in a configuration file. To generate keys, use the following command:
./key-master generate
- To generate keys for all profiles:
./key-master generate all
- To generate keys for a single profile:
./key-master generate <key-name>
You can use key-master to delete SSH keys, either for a single profile or for all profiles defined in a configuration file. To delete keys, use the following command:
./key-master delete
- To delete keys for all profiles:
./key-master delete all
- To delete keys for a single profile:
./key-master delete <key-name>
You can use key-master to set Git user information, either for a single profile or for all profiles defined in a configuration file. To set Git user information, use the following command:
./key-master config <key-name>
key-master reads configuration details from a "config.yml" file, which should be present in the same directory as the key-master executable. The configuration file should define SSH key profiles, each with a unique name, description, Git username, and Git email.
Here's an example of the configuration format in "config.yml":
# Description: Configuration file for ssh-key-manager
ssh_keys:
- name: ssh_key_1
description: My primary SSH key
git_config_username: my_github_username_0
git_config_email: my_github_email_0
- name: ssh_key_2
description: Secondary SSH key
git_config_username: my_github_username_1
git_config_email: my_github_email_1
This module is open-source and available under the MIT License.
- Please feel free to contribute to this project. I am happy about every contribution. ๐
- Give me a star if you like the project. โญ
- Give me a follow if you want to see more projects from me. โค๏ธ
- Provide feedback if you have any suggestions. ๐ฌ
- Provide ideas if you have any. ๐ก