Code Monkey home page Code Monkey logo

key-master's Introduction

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.


Installation

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

  1. Clone the key-master repository to your local machine:
git clone github.com/anaconda1337/key-master
  1. Change to the key-master directory:
cd key-master
  1. Build the key-master binary:
go build
  1. Now you can run key-master from the command line:
./key-master

Usage

Generate SSH Keys

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>

Delete SSH Keys

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>

Set Git User Information

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>

Configuration

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

License

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. ๐Ÿ’ก

key-master's People

Contributors

anaconda1337 avatar

Stargazers

 avatar Martin Koparanov avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.