ssh_key_manager is a powerful utility tool designed to simplify the management and usage of SSH keys. With this tool, you can easily manage, create, and switch between SSH keys, ensuring secure and efficient communication with remote services like GitHub, GitLab, and more.
To begin, you need to clone the repository to your local machine. Open the terminal and run the following command:
curl -O https://raw.githubusercontent.com/devHieu04/ssh_key_management/main/ssh_key_manager.shNext, you need to grant execution permissions for the script:
chmod +x ssh_key_manager.shOpen the ~/.zshrc configuration file and add the following line at the end of the file:
nano ~/.zshrc
# Add this line to the end of the file
source ~/.ssh_key_manager.shnano ~/.zshrc
# Add this line to the end of the file
source ~/ssh_key_manager.shAfter updating ~/.zshrc, you need to reload the Zsh configuration for the changes to take effect:
source ~/.zshrcSeveral useful aliases will be created to make it easier for you to use the tool:
# Display alias help
ssh_help # Show help for aliases
# Run SSH key management script
sshm # Run the SSH key management script
# Check connection to GitHub
sshp # Check SSH connection to GitHub
# Create a new SSH key
sshnew # Create a new SSH key
# Display current SSH information
sshc # Show current SSH key informationsshm: Run the SSH key management tool.sshp: Check the connection to services like GitHub, GitLab, etc.sshnew: Create a new SSH key and configure it for GitHub/GitLab.sshc: Display the current SSH key information, including keys and configuration details.
- Easy to use: Create and manage SSH keys with just a few simple commands.
- Automation: Easily create new SSH keys and configure them for services like GitHub and GitLab.
- Convenience: Easily switch between SSH keys without needing to remember complex commands.