Skip to content

itGen is a simple Bash utility that automates the setup of SSH keys for GitHub. It generates an SSH key, adds it to the SSH agent, copies the public key to the clipboard, and redirects you to the GitHub SSH keys setup page for quick addition.

Notifications You must be signed in to change notification settings

SpyrosLefkaditis/GitGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

🚀 GitGen

GitGen is a lightweight Bash utility that simplifies setting up SSH keys for GitHub. With just one command, it generates a secure SSH key, adds it to the SSH agent, copies the public key to your clipboard (if xclip is installed), and provides you with the GitHub SSH settings page link for quick setup.


✨ Features

  • 🔐 Secure SSH Key Generation: Automatically generates a key using your GitHub email.
  • 🚀 Streamlined Setup: Adds the key to your SSH agent for immediate use.
  • 📋 Clipboard Copy: Copies your public key to the clipboard if xclip is installed.
  • 🌐 Quick Navigation: Provides a direct link to the GitHub SSH settings page for easy addition.

⚡ Quick Start

1️⃣ Clone the Repository

git clone https://github.com/SpyrosLefkaditis/GitGen.git
cd GitGen

2️⃣ Run the Script

./gitgen

🛠 Requirements

Ensure you have the following installed on your system:

  • xclip: For copying the public key to your clipboard.
    Install with:
    sudo apt install xclip
  • Google Chrome (optional): For easy navigation to the GitHub SSH setup page, but you can use any browser.

📖 Usage

  1. Run the script:
    ./gitgen
  2. Enter your GitHub email when prompted.
  3. The script will generate an SSH key, add it to the SSH agent, and either copy the key to your clipboard (if xclip is installed) or print it for manual copying.
  4. Visit the GitHub SSH setup page using the provided link and paste the public key.

🛡 Notes

  • Keep your private key (~/.ssh/id_ed25519) secure. Never share it.
  • The script only interacts with your public key, ensuring privacy and security.

Enjoy hassle-free SSH setup with GitGen! 😊

About

itGen is a simple Bash utility that automates the setup of SSH keys for GitHub. It generates an SSH key, adds it to the SSH agent, copies the public key to the clipboard, and redirects you to the GitHub SSH keys setup page for quick addition.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages