Skip to content

mramkumar/sshkey-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshkey-switch

Overview

sshkey-switch is a command-line utility that allows users to easily switch between multiple SSH keys in the same terminal. It automates the process of managing SSH keys by listing available keys, selecting one interactively, and adding it to the ssh-agent.

Supported Operating System

  • Mac Os
  • Linux

Features

  • Lists all valid SSH private keys from ~/.ssh/
  • Allows interactive selection of an SSH key
  • Automatically starts ssh-agent if not running
  • Removes previously added SSH keys before adding the new one
  • Stores recently used keys for quick selection
  • Provides instructions to activate the environment variables

Installation

# pip install sshkey-switch

Usage

# sshkey-switch

Follow the on-screen instructions to select an SSH key.

Example Output

Notes

  • Ensure you run source ~/.bashrc if prompted to activate environment variables.
  • The script only lists valid SSH private keys and excludes public keys or other files.

License

This project is licensed under the MIT License.

About

Interactive SSH Key Switcher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages